Fix link to comment on report-page

closes #7105
This commit is contained in:
Benjamin Neff 2016-09-16 22:08:11 +02:00 committed by Steffen van Bergerem
parent 9c93691b8a
commit 5837919946
No known key found for this signature in database
GPG key ID: 2F08F75F9525C7E0
3 changed files with 3 additions and 2 deletions

View file

@ -20,6 +20,7 @@
* Remove whitespaces next to like link in stream [#7088](https://github.com/diaspora/diaspora/pull/7088) * Remove whitespaces next to like link in stream [#7088](https://github.com/diaspora/diaspora/pull/7088)
* Prevent overflow of interaction avatars in the single post view [#7070](https://github.com/diaspora/diaspora/pull/7070) * Prevent overflow of interaction avatars in the single post view [#7070](https://github.com/diaspora/diaspora/pull/7070)
* Fix moving publisher on first click after page load [#7094](https://github.com/diaspora/diaspora/pull/7094) * Fix moving publisher on first click after page load [#7094](https://github.com/diaspora/diaspora/pull/7094)
* Fix link to comment on report page [#7105](https://github.com/diaspora/diaspora/pull/7105)
## Features ## Features
* Deleted comments will be removed when loading more comments [#7045](https://github.com/diaspora/diaspora/pull/7045) * Deleted comments will be removed when loading more comments [#7045](https://github.com/diaspora/diaspora/pull/7045)

View file

@ -10,7 +10,7 @@ module ReportHelper
when Comment when Comment
raw t("report.comment_label", data: link_to( raw t("report.comment_label", data: link_to(
h(comment_message(item)), h(comment_message(item)),
post_path(item.post.id, anchor: item.author.guid) post_path(item.post.id, anchor: item.guid)
)) ))
else else
raw t("report.not_found") raw t("report.not_found")

View file

@ -23,7 +23,7 @@ describe ReportHelper, type: :helper do
end end
it "contains an anchor to the comment" do it "contains an anchor to the comment" do
expect(helper.report_content(@comment_report)) expect(helper.report_content(@comment_report))
.to include %(href="#{post_path(@post, anchor: @comment.author.guid)}") .to include %(href="#{post_path(@post, anchor: @comment.guid)}")
end end
end end
end end