Skip to content

Commit bbf7343

Browse files
committed
spam -> content
1 parent 7b81957 commit bbf7343

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

config/locales/de/user_content_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ de:
44
report_content:
55
authentication: Kurs-URL für die LTI-Authentifizierung.
66
prolog: 'Die folgenden Inhalte wurden als unangemessen gemeldet:'
7-
subject: 'Spam Report: Ein %{human_model_name} in CodeOcean wurde als unangemessen markiert.'
7+
subject: 'Content Report: Ein %{human_model_name} in CodeOcean wurde als unangemessen markiert.'
88
take_action: Bitte ergreifen Sie gegebenenfalls Maßnahmen.

config/locales/en/user_content_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ en:
44
report_content:
55
authentication: Course URL for LTI authentication.
66
prolog: 'The following content has been reported as inappropriate:'
7-
subject: 'Spam Report: A %{human_model_name} on CodeOcean has been marked as inappropriate.'
7+
subject: 'Content Report: A %{human_model_name} on CodeOcean has been marked as inappropriate.'
88
take_action: Please take action if required.

lib/user_content_report.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class UserContentReport
44
def initialize(reported_content:)
55
unless [Comment, RequestForComment].include?(reported_content.class)
6-
raise("#{reported_content.model_name} is not configured for spam reports.")
6+
raise("#{reported_content.model_name} is not configured for content reports.")
77
end
88

99
@reported_content = reported_content

spec/lib/user_content_report_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,6 @@
6262
end
6363

6464
it 'raise an error if an unsupported model is reported' do
65-
expect { described_class.new(reported_content: Exercise.new) }.to raise_error('Exercise is not configured for spam reports.')
65+
expect { described_class.new(reported_content: Exercise.new) }.to raise_error('Exercise is not configured for content reports.')
6666
end
6767
end

0 commit comments

Comments
 (0)