Fix compatibility with PeerTube (#6968)
* Support fetching objects of convertible types by URL (fixes #6924) * Ignore invalid hashtags
This commit is contained in:
@ -79,6 +79,8 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
||||
hashtag = Tag.where(name: hashtag).first_or_initialize(name: hashtag)
|
||||
|
||||
status.tags << hashtag
|
||||
rescue ActiveRecord::RecordInvalid
|
||||
nil
|
||||
end
|
||||
|
||||
def process_mention(tag, status)
|
||||
|
Reference in New Issue
Block a user