Skip to content

Commit

Permalink
Merge pull request #6974 from fjordllc/bug/fix-first-report-notificat…
Browse files Browse the repository at this point in the history
…ion-link

日報のURL生成方法を修正
  • Loading branch information
komagata authored Oct 23, 2023
2 parents c7e68d4 + 8ea865b commit 2c3431b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/mailers/activity_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def came_comment(args = {})

@user = @receiver
link = "/#{@comment.commentable_type.downcase.pluralize}/#{@comment.commentable.id}"
@link_url = notification_redirector_path(
@link_url = notification_redirector_url(
link: link,
kind: Notification.kinds[:came_comment]
)
Expand Down
2 changes: 1 addition & 1 deletion app/views/activity_mailer/first_report.html.slim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
= render '/notification_mailer/notification_mailer_template',
title: "#{@report.user.login_name}さんのはじめての日報です!",
link_url: "/reports/#{@report.id}", link_text: 'この日報へ' do
link_url: @link_url, link_text: 'この日報へ' do
p #{@report.user.login_name}さんのはじめての日報です。歓迎のコメントを投稿しよう!!
div(style='border-top: solid 1px #ccc; height: 0;')
= md2html(@report.description)

0 comments on commit 2c3431b

Please sign in to comment.