Mercurial Hosting > chat
comparison src/active.js.luan @ 89:3053a4fc10be
spy
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 13 Mar 2025 17:56:39 -0600 |
parents | 624654817f99 |
children |
comparison
equal
deleted
inserted
replaced
88:7b339b1ccd11 | 89:3053a4fc10be |
---|---|
8 local Chat = require "site:/lib/Chat.luan" | 8 local Chat = require "site:/lib/Chat.luan" |
9 local get_chat_by_id = Chat.get_by_id or error() | 9 local get_chat_by_id = Chat.get_by_id or error() |
10 | 10 |
11 | 11 |
12 return function() | 12 return function() |
13 local spy = Http.request.cookies.spy ~= nil | |
14 if spy then | |
15 return | |
16 end | |
13 local user = current_user() or error() | 17 local user = current_user() or error() |
14 remove_notify(user) | 18 remove_notify(user) |
15 local chat = Http.request.parameters.chat | 19 local chat = Http.request.parameters.chat |
16 if chat ~= nil then | 20 if chat ~= nil then |
17 chat = get_chat_by_id(chat) or error() | 21 chat = get_chat_by_id(chat) or error() |