Fix newline split

This commit is contained in:
Essem 2024-02-18 12:10:02 -06:00
parent 06bfae71d2
commit e9e0b1bf2f
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

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