mirror of
https://github.com/diaspora/diaspora.git
synced 2026-01-08 22:58:08 -05:00
committed by
Dennis Schubert
parent
c24ca7d56c
commit
452f46a548
@@ -7,6 +7,7 @@
|
|||||||
* Fix a bug with parsing certain OpenGraph metadata structures [#8463](https://github.com/diaspora/diaspora/pull/8463)
|
* Fix a bug with parsing certain OpenGraph metadata structures [#8463](https://github.com/diaspora/diaspora/pull/8463)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
* For admins, the offending content's author is now visible in the reports overview [#8464](https://github.com/diaspora/diaspora/pull/8464)
|
||||||
|
|
||||||
# 0.9.0.0
|
# 0.9.0.0
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
= report.text
|
= report.text
|
||||||
.panel-body
|
.panel-body
|
||||||
.content
|
.content
|
||||||
|
%strong
|
||||||
|
= t("report.author_label")
|
||||||
|
%p
|
||||||
|
= report.reported_author.diaspora_handle
|
||||||
= report_content(report)
|
= report_content(report)
|
||||||
.segment-selection
|
.segment-selection
|
||||||
= button_to t("report.reported_user_details"),
|
= button_to t("report.reported_user_details"),
|
||||||
|
|||||||
@@ -1049,8 +1049,9 @@ en:
|
|||||||
placeholder: "This content violates the terms because..."
|
placeholder: "This content violates the terms because..."
|
||||||
submit: "Report this content"
|
submit: "Report this content"
|
||||||
title: "Reports overview"
|
title: "Reports overview"
|
||||||
post_label: "<strong>Post</strong>: %{content}"
|
author_label: "Author:"
|
||||||
comment_label: "<strong>Comment</strong>: %{data}"
|
post_label: "<strong>Post</strong>:<br />%{content}"
|
||||||
|
comment_label: "<strong>Comment</strong>:<br />%{data}"
|
||||||
reported_label: "<strong>Reported by</strong> %{person}"
|
reported_label: "<strong>Reported by</strong> %{person}"
|
||||||
reason_label: "Reason:"
|
reason_label: "Reason:"
|
||||||
review_link: "Mark as reviewed"
|
review_link: "Mark as reviewed"
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Feature: reporting of posts and comments
|
|||||||
And I submit the form
|
And I submit the form
|
||||||
Then I should see an error flash message containing "The report already exists"
|
Then I should see an error flash message containing "The report already exists"
|
||||||
When I go to the report page
|
When I go to the report page
|
||||||
Then I should see a report by "alice@alice.alice" with reason "That's my reason" on post "I'm a post by Bob"
|
Then I should see a report by "alice@alice.alice" with reason "That's my reason" on post "I'm a post by Bob" by "bob@localhost"
|
||||||
And "alice@alice.alice" should have received an email with subject "A new post was marked as offensive"
|
And "alice@alice.alice" should have received an email with subject "A new post was marked as offensive"
|
||||||
|
|
||||||
Scenario: User can report a comment, but cannot report it twice
|
Scenario: User can report a comment, but cannot report it twice
|
||||||
@@ -42,7 +42,7 @@ Feature: reporting of posts and comments
|
|||||||
And I submit the form
|
And I submit the form
|
||||||
Then I should see an error flash message containing "The report already exists"
|
Then I should see an error flash message containing "The report already exists"
|
||||||
When I go to the report page
|
When I go to the report page
|
||||||
Then I should see a report by "alice@alice.alice" with reason "That's my reason" on comment "Bob comment"
|
Then I should see a report by "alice@alice.alice" with reason "That's my reason" on comment "Bob comment" by "bob@localhost"
|
||||||
And "alice@alice.alice" should have received an email with subject "A new comment was marked as offensive"
|
And "alice@alice.alice" should have received an email with subject "A new comment was marked as offensive"
|
||||||
|
|
||||||
Scenario: The correct post is reported
|
Scenario: The correct post is reported
|
||||||
|
|||||||
@@ -8,16 +8,20 @@ And /^I should see the report modal/ do
|
|||||||
step %(I should see "Reporting content" within "#reportModal")
|
step %(I should see "Reporting content" within "#reportModal")
|
||||||
end
|
end
|
||||||
|
|
||||||
And /^I should see a report by "([^"]*)" with reason "([^"]*)" on post "([^"]*)"$/ do |reporter, reason, content|
|
And /^I should see a report by "([^"]*)" with reason "([^"]*)" on post "([^"]*)" by "([^"]*)"$/ do
|
||||||
test_report("Post", User.find_by(email: reporter), reason, content)
|
|reporter, reason, content, author|
|
||||||
|
test_report("Post", User.find_by(email: reporter), reason, content, author)
|
||||||
end
|
end
|
||||||
|
|
||||||
And /^I should see a report by "([^"]*)" with reason "([^"]*)" on comment "([^"]*)"$/ do |reporter, reason, content|
|
And /^I should see a report by "([^"]*)" with reason "([^"]*)" on comment "([^"]*)" by "([^"]*)"$/ do
|
||||||
test_report("Comment", User.find_by(email: reporter), reason, content)
|
|reporter, reason, content, author|
|
||||||
|
test_report("Comment", User.find_by(email: reporter), reason, content, author)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_report(type, reporter, reason, content)
|
def test_report(type, reporter, reason, content, author)
|
||||||
step %(I should see "#{reporter.username}" within ".reporter")
|
step %(I should see "#{reporter.username}" within ".reporter")
|
||||||
step %(I should see "#{reason}" within ".reason")
|
step %(I should see "#{reason}" within ".reason")
|
||||||
step %(I should see "#{type}: #{content}" within ".content")
|
step %(I should see "#{author}:" within ".content")
|
||||||
|
step %(I should see "#{type}:" within ".content")
|
||||||
|
step %(I should see "#{content}" within ".content")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user