diff src/add_post.js.luan @ 53:9298b04607ae

add unread
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 03 Mar 2025 19:39:30 -0700
parents 7ea33179592a
children d4d154b404f8
line wrap: on
line diff
--- a/src/add_post.js.luan	Mon Mar 03 12:29:06 2025 -0700
+++ b/src/add_post.js.luan	Mon Mar 03 19:39:30 2025 -0700
@@ -39,6 +39,7 @@
 		chat.updated = now
 		chat.save()
 	end )
+	chat.read(user)
 	Notify.add(chat)
 	local html = `post_html(post)`
 	local js = "added("..json_string(html)..")"