Fix handling of duplicate mentions in incoming status Update (#33911)

This commit is contained in:
Claire 2025-02-12 16:34:56 +01:00 committed by KMY
parent d4f0b01207
commit 4fa550d881
3 changed files with 12 additions and 5 deletions

View file

@ -12,6 +12,7 @@ RSpec.describe ActivityPub::ProcessStatusUpdateService do
[
{ type: 'Hashtag', name: 'hoge' },
{ type: 'Mention', href: ActivityPub::TagManager.instance.uri_for(alice) },
{ type: 'Mention', href: ActivityPub::TagManager.instance.uri_for(alice) },
{ type: 'Mention', href: bogus_mention },
]
end