Skip to content

Commit

Permalink
はじめての日報通知メール、相談部屋からのコメント通知メールのリンクを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuya-Sakai91 committed Oct 18, 2023
1 parent abaf556 commit 8ea865b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions 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 Expand Up @@ -298,7 +298,7 @@ def first_report(args = {})
@user = @receiver

@link_url = notification_redirector_url(
link: report_url(@report),
link: "/reports/#{@report.id}",
kind: Notification.kinds[:first_report]
)

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 8ea865b

Please sign in to comment.