mirror of
https://github.com/mastodon/mastodon.git
synced 2026-08-16 00:36:34 -05:00
Fix typo in process_status_update_service.rb allowing more than 4 media attachments (#39978)
This commit is contained in:
@@ -89,7 +89,7 @@ class ActivityPub::ProcessStatusUpdateService < BaseService
|
||||
as_array(@json['attachment']).each do |attachment|
|
||||
media_attachment_parser = ActivityPub::Parser::MediaAttachmentParser.new(attachment)
|
||||
|
||||
next if media_attachment_parser.remote_url.blank? || @next_media_attachments.size > Status::MEDIA_ATTACHMENTS_LIMIT
|
||||
next if media_attachment_parser.remote_url.blank? || @next_media_attachments.size >= Status::MEDIA_ATTACHMENTS_LIMIT
|
||||
|
||||
begin
|
||||
media_attachment = previous_media_attachments.find { |previous_media_attachment| previous_media_attachment.remote_url == media_attachment_parser.remote_url }
|
||||
|
||||
Reference in New Issue
Block a user