Skip to content
Snippets Groups Projects
Commit e53cc673 authored by ThibG's avatar ThibG Committed by Eugen Rochko
Browse files

Ignore invalid hashtags on remote statuses instead of rejecting them (#9118)

Fixes #9115
parent 82e7988a
No related branches found
No related tags found
No related merge requests found
......@@ -129,7 +129,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
return if tag['name'].blank?
hashtag = tag['name'].gsub(/\A#/, '').mb_chars.downcase
hashtag = Tag.where(name: hashtag).first_or_create(name: hashtag)
hashtag = Tag.where(name: hashtag).first_or_create!(name: hashtag)
return if @tags.include?(hashtag)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment