PreviewCardTrend.connection.exec_update('UPDATE preview_card_trends SET rank = t0.calculated_rank FROM (SELECT id, row_number() OVER w AS calculated_rank FROM preview_card_trends WINDOW w AS (PARTITION BY language ORDER BY score DESC)) t0 WHERE preview_card_trends.id = t0.id')
StatusTrend.connection.exec_update('UPDATE status_trends SET rank = t0.calculated_rank FROM (SELECT id, row_number() OVER w AS calculated_rank FROM status_trends WINDOW w AS (PARTITION BY language ORDER BY score DESC)) t0 WHERE status_trends.id = t0.id')
end
end
end
end
deffilter_for_allowed_items(items)
# Show only one status per account, pick the one with the highest score
body:'The following items need a review before they can be displayed publicly:'
body:'The following items need a review before they can be displayed publicly:'
new_trending_links:
new_trending_links:
no_approved_links:There are currently no approved trending links.
requirements:'Any of these candidates could surpass the #%{rank} approved trending link, which is currently "%{lowest_link_title}" with a score of %{lowest_link_score}.'
title:Trending links
title:Trending links
new_trending_statuses:
new_trending_statuses:
no_approved_statuses:There are currently no approved trending posts.
requirements:'Any of these candidates could surpass the #%{rank} approved trending post, which is currently %{lowest_status_url} with a score of %{lowest_status_score}.'
title:Trending posts
title:Trending posts
new_trending_tags:
new_trending_tags:
no_approved_tags:There are currently no approved trending hashtags.
no_approved_tags:There are currently no approved trending hashtags.