mirror of
https://github.com/mastodon/mastodon.git
synced 2025-07-15 08:48:15 +00:00
Merge b6709d7ec9
into e9170e2de1
This commit is contained in:
commit
e5a916c207
|
@ -53,6 +53,9 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||
process_quote
|
||||
process_audience
|
||||
|
||||
# Reject the status unless all the hashtags are usable:
|
||||
return reject_payload! unless @tags.all?(&:usable?)
|
||||
|
||||
ApplicationRecord.transaction do
|
||||
@status = Status.create!(@params)
|
||||
attach_tags(@status)
|
||||
|
|
Loading…
Reference in New Issue
Block a user