Add support for language preferences for trending statuses and links (#18288)
This commit is contained in:
parent
678fc4d292
commit
45ebdb72ca
29 changed files with 274 additions and 121 deletions
|
@ -4,6 +4,7 @@ class AdminMailer < ApplicationMailer
|
|||
layout 'plain_mailer'
|
||||
|
||||
helper :accounts
|
||||
helper :languages
|
||||
|
||||
def new_report(recipient, report)
|
||||
@report = report
|
||||
|
@ -37,11 +38,8 @@ class AdminMailer < ApplicationMailer
|
|||
|
||||
def new_trends(recipient, links, tags, statuses)
|
||||
@links = links
|
||||
@lowest_trending_link = Trends.links.query.allowed.limit(Trends.links.options[:review_threshold]).last
|
||||
@tags = tags
|
||||
@lowest_trending_tag = Trends.tags.query.allowed.limit(Trends.tags.options[:review_threshold]).last
|
||||
@statuses = statuses
|
||||
@lowest_trending_status = Trends.statuses.query.allowed.limit(Trends.statuses.options[:review_threshold]).last
|
||||
@me = recipient
|
||||
@instance = Rails.configuration.x.local_domain
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue