Skip to content

Commit

Permalink
Use public_visibility (mastodon#29847)
Browse files Browse the repository at this point in the history
  • Loading branch information
tribela authored Apr 4, 2024
1 parent 91d3b3f commit 4045c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/annual_report/top_statuses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ def generate
end

def base_scope
@account.statuses.with_public_visibility.joins(:status_stat).where(id: year_as_snowflake_range).reorder(nil)
@account.statuses.public_visibility.joins(:status_stat).where(id: year_as_snowflake_range).reorder(nil)
end
end
2 changes: 1 addition & 1 deletion app/views/application/mailer/_hashtag.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
- accounts = hashtag.statuses.with_public_visibility.joins(:account).merge(Account.without_suspended.without_silenced).includes(:account).limit(3).map(&:account)
- accounts = hashtag.statuses.public_visibility.joins(:account).merge(Account.without_suspended.without_silenced).includes(:account).limit(3).map(&:account)

%table.email-w-full{ cellspacing: 0, cellpadding: 0, border: 0, role: 'presentation' }
%tr
Expand Down

0 comments on commit 4045c06

Please sign in to comment.