This commit is contained in:
Emelia Smith 2024-04-26 18:07:05 +00:00 committed by GitHub
commit 7fe5ee0623
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

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)