Mercurial Hosting > chat
comparison src/add_post.js.luan @ 92:c41e200c3e76
try to fix lost posts
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 31 Mar 2025 15:43:14 -0600 |
parents | b5a316575e64 |
children |
comparison
equal
deleted
inserted
replaced
91:9196d936d4fa | 92:c41e200c3e76 |
---|---|
46 chat.updated = now | 46 chat.updated = now |
47 chat.save() | 47 chat.save() |
48 end ) | 48 end ) |
49 Notify.add(chat) | 49 Notify.add(chat) |
50 local html = `post_html(post)` | 50 local html = `post_html(post)` |
51 local js = "added("..json_string(html)..")" | 51 local js = "added("..json_string(html)..","..now..")" |
52 chat.http_push(js) | 52 chat.http_push(js) |
53 js = "getChats('"..chat.id.."',"..now..")" | 53 js = "getChats('"..chat.id.."',"..now..")" |
54 http_push_to_users( chat.user_ids, js ) | 54 http_push_to_users( chat.user_ids, js ) |
55 end | 55 end |