Fix typo in process_status_update_service.rb allowing more than 4 media attachments (#39978)

This commit is contained in:
Shlee authored and GitHub committed 2026-07-29 08:45:52 +00:00
1 parent 3d4a2e4a45
commit f8362ba506
1 file changed
+1 -1
@@ -99,7 +99,7 @@ class ActivityPub::ProcessStatusUpdateService < BaseService
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 }