comparison src/get_chat.js.luan @ 89:3053a4fc10be

spy
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 13 Mar 2025 17:56:39 -0600
parents a47036fd0158
children
comparison
equal deleted inserted replaced
88:7b339b1ccd11 89:3053a4fc10be
22 local Logging = require "luan:logging/Logging.luan" 22 local Logging = require "luan:logging/Logging.luan"
23 local logger = Logging.logger "get_chat.js" 23 local logger = Logging.logger "get_chat.js"
24 24
25 25
26 local function get_html(user,chat) 26 local function get_html(user,chat)
27 chat.read(user) 27 local spy = Http.request.cookies.spy ~= nil
28 if not spy then
29 chat.read(user)
30 end
28 local posts = post_search( "post_chat_id:"..chat.id, "id" ) 31 local posts = post_search( "post_chat_id:"..chat.id, "id" )
29 %> 32 %>
30 <div top> 33 <div top>
31 <h3> 34 <h3>
32 <img back onclick="back()" src="/images/arrow_back.svg"> 35 <img back onclick="back()" src="/images/arrow_back.svg">