mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Display summaries for anonymous users. (#23294)
Streaming doesn't work for anonymous users because we scope updates to the current user. Since they can only see cached summaries, we can skip the streaming parameter and update it directly with the ajax response.
This commit is contained in:
@@ -1185,7 +1185,7 @@ class TopicsController < ApplicationController
|
||||
|
||||
opts = params.permit(:skip_age_check)
|
||||
|
||||
if params[:stream]
|
||||
if params[:stream] && current_user
|
||||
Jobs.enqueue(
|
||||
:stream_topic_summary,
|
||||
topic_id: topic.id,
|
||||
|
||||
Reference in New Issue
Block a user