1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
This commit is contained in:
Emelia Smith 2024-07-31 14:05:05 +00:00 committed by GitHub
commit 01f1a7b209
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,6 +82,9 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
process_tags
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)