Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GitHub Mirror
mastodon
Mastodon
Commits
a458b74c
Unverified
Commit
a458b74c
authored
Nov 29, 2021
by
Eugen Rochko
Committed by
GitHub
Nov 29, 2021
Browse files
Fix error on trending mailer due to missing constant (#17072)
parent
f200775f
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/mailers/admin_mailer.rb
View file @
a458b74c
...
...
@@ -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
::
L
inks
::
REVIEW_THRESHOLD
).
last
@lowest_trending_link
=
Trends
.
links
.
get
(
true
,
Trends
.
l
inks
.
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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment