Fix newline split

This commit is contained in:
Essem 2024-02-18 12:10:02 -06:00 committed by Jeremy Kescher
parent eda4ee9136
commit a39c911251
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4

View file

@ -86,7 +86,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
process_status_params
raise Mastodon::RejectPayload if MediaAttachment.where(id: @params[:media_attachment_ids]).where(blurhash: Setting.reject_blurhash.split(/\r\n/).filter(&:present?).uniq).present?
raise Mastodon::RejectPayload if MediaAttachment.where(id: @params[:media_attachment_ids]).where(blurhash: Setting.reject_blurhash.split(/\r?\n/).filter(&:present?).uniq).present?
process_tags
process_audience