Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 58379199 rédigé par Benjamin Neff's avatar Benjamin Neff Validation de Steffen van Bergerem
Parcourir les fichiers

Fix link to comment on report-page

closes #7105
parent 9c93691b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -20,6 +20,7 @@ ...@@ -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)
......
...@@ -10,7 +10,7 @@ module ReportHelper ...@@ -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")
......
...@@ -23,7 +23,7 @@ describe ReportHelper, type: :helper do ...@@ -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
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter