comparison src/add_post.js.luan @ 61:d4d154b404f8

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 04 Mar 2025 21:29:17 -0700
parents 9298b04607ae
children b5a316575e64
comparison
equal deleted inserted replaced
60:3521166513b3 61:d4d154b404f8
37 } 37 }
38 post.save() 38 post.save()
39 chat.updated = now 39 chat.updated = now
40 chat.save() 40 chat.save()
41 end ) 41 end )
42 chat.read(user)
43 Notify.add(chat) 42 Notify.add(chat)
44 local html = `post_html(post)` 43 local html = `post_html(post)`
45 local js = "added("..json_string(html)..")" 44 local js = "added("..json_string(html)..")"
46 chat.http_push(js) 45 chat.http_push(js)
47 js = "getChats('"..chat.id.."',"..now..")" 46 js = "getChats('"..chat.id.."',"..now..")"