0
0
Fork 0

Add support for language preferences for trending statuses and links (#18288)

This commit is contained in:
Eugen Rochko 2022-10-08 16:45:40 +02:00 committed by GitHub
parent 678fc4d292
commit 45ebdb72ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 274 additions and 121 deletions

View file

@ -8,7 +8,7 @@ class AdminMailerPreview < ActionMailer::Preview
# Preview this email at http://localhost:3000/rails/mailers/admin_mailer/new_trends
def new_trends
AdminMailer.new_trends(Account.first, PreviewCard.limit(3), Tag.limit(3), Status.where(reblog_of_id: nil).limit(3))
AdminMailer.new_trends(Account.first, PreviewCard.joins(:trend).limit(3), Tag.limit(3), Status.joins(:trend).where(reblog_of_id: nil).limit(3))
end
# Preview this email at http://localhost:3000/rails/mailers/admin_mailer/new_appeal