mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: If a user is deleted, don't break embedded comments for admins.
This commit is contained in:
@@ -47,7 +47,7 @@ describe EmbedController do
|
||||
|
||||
it "creates a topic view when a topic_id is found" do
|
||||
TopicEmbed.expects(:topic_id_for_embed).returns(123)
|
||||
TopicView.expects(:new).with(123, nil, {limit: 100, exclude_first: true})
|
||||
TopicView.expects(:new).with(123, nil, {limit: 100, exclude_first: true, exclude_deleted_users: true})
|
||||
get :comments, embed_url: embed_url
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user