This commit is contained in:
Emelia Smith 2025-05-06 15:03:45 +00:00 committed by GitHub
commit d1413741b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)