1
0
Fork 0
forked from gitea/nas

Fix processing of mentions for post edits with an existing corresponding silent mention (#33227)

This commit is contained in:
Claire 2025-01-15 11:59:28 +01:00
parent afcfc64007
commit 533477e77c
5 changed files with 33 additions and 21 deletions

View file

@ -150,6 +150,14 @@ RSpec.describe UpdateStatusService do
.to eq [bob.id]
expect(status.mentions.pluck(:account_id))
.to contain_exactly(alice.id, bob.id)
# Going back when a mention was switched to silence should still be possible
subject.call(status, status.account_id, text: 'Hello @alice')
expect(status.active_mentions.pluck(:account_id))
.to eq [alice.id]
expect(status.mentions.pluck(:account_id))
.to contain_exactly(alice.id, bob.id)
end
end