Compare commits

...

2 Commits

Author SHA1 Message Date
Emelia Smith
03e698656b
Merge b6709d7ec9 into 0725afe1a9 2025-11-25 15:03:38 +00:00
Emelia Smith
b6709d7ec9
Enable rejection of Create Activities if the status includes unusable hashtags 2024-02-17 22:05:44 +01:00

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.merge(quote: @quote))
attach_tags(@status)