Fix compatibility with PeerTube (#6968)
* Support fetching objects of convertible types by URL (fixes #6924) * Ignore invalid hashtags
This commit is contained in:
parent
a6c129ddbd
commit
e573bb0990
3 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue