This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
Fix auto-report string saying the account has been auto-silenced (
#12142
)
pull/4/head
Eugen Rochko
4 years ago
committed by
GitHub
parent
a57ac0723f
commit
aa509a3d8a
No known key found for this signature in database
GPG Key ID:
4AEE18F83AFDEB23
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/lib/spam_check.rb
+1
-1
config/locales/en.yml
+ 1
- 1
app/lib/spam_check.rb
View File
@ -135,7 +135,7 @@ class SpamCheck
def
auto_report_status!
status_ids
=
Status
.
where
(
visibility
:
%
i
(
public
unlisted
)
)
.
where
(
id
:
matching_status_ids
)
.
pluck
(
:id
)
+
[
@status
.
id
]
if
@status
.
distributable?
ReportService
.
new
.
call
(
Account
.
representative
,
@account
,
status_ids
:
status_ids
,
comment
:
I18n
.
t
(
'spam_check.spam_detected
_and_silenced
'
)
)
ReportService
.
new
.
call
(
Account
.
representative
,
@account
,
status_ids
:
status_ids
,
comment
:
I18n
.
t
(
'spam_check.spam_detected'
)
)
end
def
already_flagged?
+ 1
- 1
config/locales/en.yml
View File
@ -1009,7 +1009,7 @@ en:
relationships
:
Follows and followers
two_factor_authentication
:
Two-factor Auth
spam_check:
spam_detected
_and_silenced
:
This is an automated report. Spam has been detected
and the sender has been silenced automatically. If this is a mistake, please unsilence the account
.
spam_detected
:
This is an automated report. Spam has been detected.
statuses:
attached:
description: 'Attached
:
%{attached}'
Write
Preview
Loading…
Cancel
Save