mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-24 07:43:24 +00:00
27965ce5ed
* Add trending statuses * Fix dangling items with stale scores in localized sets * Various fixes and improvements - Change approve_all/reject_all to approve_accounts/reject_accounts - Change Trends::Query methods to not mutate the original query - Change Trends::Query#skip to offset - Change follow recommendations to be refreshed in a transaction * Add tests for trending statuses filtering behaviour * Fix not applying filtering scope in controller
15 lines
773 B
Plaintext
15 lines
773 B
Plaintext
<%= raw t('admin_mailer.new_trends.new_trending_statuses.title') %>
|
|
|
|
<% @statuses.each do |status| %>
|
|
- <%= ActivityPub::TagManager.instance.url_for(status) %>
|
|
<%= raw t('admin.trends.tags.current_score', score: Trends.statuses.score(status.id).round(2)) %>
|
|
<% end %>
|
|
|
|
<% if @lowest_trending_status %>
|
|
<%= raw t('admin_mailer.new_trends.new_trending_statuses.requirements', lowest_status_url: ActivityPub::TagManager.instance.url_for(@lowest_trending_status), lowest_status_score: Trends.statuses.score(@lowest_trending_status.id).round(2), rank: Trends.statuses.options[:review_threshold]) %>
|
|
<% else %>
|
|
<%= raw t('admin_mailer.new_trends.new_trending_statuses.no_approved_statuses') %>
|
|
<% end %>
|
|
|
|
<%= raw t('application_mailer.view')%> <%= admin_trends_statuses_url %>
|