Skip to content

Commit

Permalink
Fix potential inefficiency in media privacy system check (mastodon#33858
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ClearlyClaire authored Feb 7, 2025
1 parent 38a3e8d commit 1cf3071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/lib/admin/system_check/media_privacy_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def check_s3_listing!(full_url)

def media_attachment
@media_attachment ||= begin
attachment = Account.representative.media_attachments.first
attachment = Account.representative.media_attachments.take
if attachment.present?
attachment.touch
attachment
Expand Down

0 comments on commit 1cf3071

Please sign in to comment.