mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 09:57:25 +08:00
FIX: Posts with Staff Colors were excluded from the group activity
Now they are included, with the correct color applied.
This commit is contained in:
@ -461,6 +461,15 @@ describe GroupsController do
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.parsed_body.first["id"]).to eq(post.id)
|
||||
end
|
||||
|
||||
it "returns moderator actions" do
|
||||
sign_in(user)
|
||||
post = Fabricate(:post, user: user, post_type: Post.types[:moderator_action])
|
||||
get "/groups/#{group.name}/posts.json"
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.parsed_body.first["id"]).to eq(post.id)
|
||||
end
|
||||
end
|
||||
|
||||
describe "#members" do
|
||||
|
Reference in New Issue
Block a user