From 1a93477635f4082a2318e363f4faa1c54650598c Mon Sep 17 00:00:00 2001 From: yystopf Date: Thu, 24 Feb 2022 14:26:04 +0800 Subject: [PATCH] fix: forked templete delay --- app/models/message_template/project_forked.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/message_template/project_forked.rb b/app/models/message_template/project_forked.rb index c119feed6..9703a6ed7 100644 --- a/app/models/message_template/project_forked.rb +++ b/app/models/message_template/project_forked.rb @@ -26,7 +26,7 @@ class MessageTemplate::ProjectForked < MessageTemplate end return '', '', '' if receivers.blank? content = sys_notice.gsub('{nickname1}', user&.real_name).gsub('{nickname2}', project&.owner&.real_name).gsub('{repository}', project&.name) - url = notification_url.gsub('{login}', user&.login).gsub('{identifier}', project&.identifier) + url = notification_url.gsub('{owner}', user&.login).gsub('{identifier}', project&.identifier) return receivers_string(receivers), content, url rescue => e Rails.logger.info("MessageTemplate::ProjectForked.get_message_content [ERROR] #{e}")