Unverified Commit 20cdbe26 authored by Benjamin Neff's avatar Benjamin Neff Committed by Dennis Schubert
Browse files

Link directly to the comment from notification mails

closes #7124
parent dfb5b717
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@ Note: Although this is a minor release, the configuration file changed because t
* Add number of unreviewed reports to admin dashboard and admin sidebar [#7109](https://github.com/diaspora/diaspora/pull/7109)
* Don't federate to pods that have been offline for an extended period of time [#7120](https://github.com/diaspora/diaspora/pull/7120)
* Add In-Reply-To and References headers to notification mails [#7122](https://github.com/diaspora/diaspora/pull/7122)
* Directly link to a comment in commented notification mails [#7124](https://github.com/diaspora/diaspora/pull/7124)

# 0.6.0.1

+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@

[<%= t('notifier.comment_on_post.reply', :name => @notification.comment_post.author_first_name) %>][1]

[1]: <%= post_url(@notification.comment_post) %>
[1]: <%= post_url(@notification.comment_post, anchor: @notification.comment.guid) %>
+1 −1
Original line number Diff line number Diff line
@@ -2,4 +2,4 @@

[<%= t('notifier.comment_on_post.reply', :name => @notification.comment.parent_author_name) %>][1]

[1]: <%= post_url(@notification.comment.post) %>
[1]: <%= post_url(@notification.comment.post, anchor: @notification.comment.guid) %>
+4 −4
Original line number Diff line number Diff line
@@ -269,8 +269,8 @@ describe Notifier, type: :mailer do
          expect(comment_mail.body.encoded).to include(comment.text)
        end

        it "contains the original post's link" do
          expect(comment_mail.body.encoded.include?("#{comment.post.id}")).to be true
        it "contains the original post's link with comment anchor" do
          expect(comment_mail.body.encoded).to include("#{comment.post.id}##{comment.guid}")
        end

        it "should not include translation fallback" do
@@ -315,8 +315,8 @@ describe Notifier, type: :mailer do
          expect(comment_mail.body.encoded).to include(comment.text)
        end

        it "contains the original post's link" do
          expect(comment_mail.body.encoded).to include("#{comment.post.id}")
        it "contains the original post's link with comment anchor" do
          expect(comment_mail.body.encoded).to include("#{comment.post.id}##{comment.guid}")
        end

        it "should not include translation fallback" do