about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2021-11-29 17:39:40 +0100
committerGitHub <noreply@github.com>2021-11-29 17:39:40 +0100
commita458b74c7e73fcd55583823231dd8479a8d0b90d (patch)
tree72bfacd850b0eb61be4459c62cca07f96ea70914
parentf200775fde553c7c2dfcb6ef4febd4546321837a (diff)
Fix error on trending mailer due to missing constant (#17072)
-rw-r--r--app/mailers/admin_mailer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mailers/admin_mailer.rb b/app/mailers/admin_mailer.rb
index 0fbd9932d..b23bd1296 100644
--- a/app/mailers/admin_mailer.rb
+++ b/app/mailers/admin_mailer.rb
@@ -29,7 +29,7 @@ class AdminMailer < ApplicationMailer
     @tags                = tags
     @me                  = recipient
     @instance            = Rails.configuration.x.local_domain
-    @lowest_trending_tag = Trends.tags.get(true, Trends::Tags::REVIEW_THRESHOLD).last
+    @lowest_trending_tag = Trends.tags.get(true, Trends.tags.options[:review_threshold]).last
 
     locale_for_account(@me) do
       mail to: @me.user_email, subject: I18n.t('admin_mailer.new_trending_tags.subject', instance: @instance)
@@ -40,7 +40,7 @@ class AdminMailer < ApplicationMailer
     @links                = links
     @me                   = recipient
     @instance             = Rails.configuration.x.local_domain
-    @lowest_trending_link = Trends.links.get(true, Trends::Links::REVIEW_THRESHOLD).last
+    @lowest_trending_link = Trends.links.get(true, Trends.links.options[:review_threshold]).last
 
     locale_for_account(@me) do
       mail to: @me.user_email, subject: I18n.t('admin_mailer.new_trending_links.subject', instance: @instance)