mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
Don't reject likes by email for closed topics (#4311)
This commit is contained in:

committed by
Régis Hanol

parent
5c1e18ecc8
commit
3588780ac3
@ -129,6 +129,11 @@ describe Email::Receiver do
|
||||
expect { process(:reply_user_matching) }.to raise_error(Email::Receiver::TopicClosedError)
|
||||
end
|
||||
|
||||
it "does not raise TopicClosedError when performing a like action" do
|
||||
topic.update_columns(closed: true)
|
||||
expect { process(:like) }.to change(PostAction, :count)
|
||||
end
|
||||
|
||||
it "raises an InvalidPost when there was an error while creating the post" do
|
||||
expect { process(:too_small) }.to raise_error(Email::Receiver::InvalidPost)
|
||||
end
|
||||
|
Reference in New Issue
Block a user