drop the SSE, use client side fetch every 5s for thread updates

This commit is contained in:
2025-06-01 22:29:48 +03:00
parent b56ab2522c
commit 68d109f428
3 changed files with 39 additions and 52 deletions

View File

@ -64,6 +64,6 @@
</span>
</div>
</dialog>
<input type="hidden" id="thread-subscribe-endpoint" value="<%= url_for("sse_thread_updates", {thread_id = thread.id}) %>">
<input type="hidden" id="thread-subscribe-endpoint" value="<%= url_for("api_get_thread_updates", {thread_id = thread.id}, {since = os.time()}) %>">
<% render("views.threads.new-post-notification") %>
<script src="/static/js/thread.js"></script>
<script src="/static/js/thread.js?v=1"></script>