fix: forked templete delay

This commit is contained in:
yystopf 2022-02-24 14:26:04 +08:00
parent 7c664addbd
commit 1a93477635
1 changed files with 1 additions and 1 deletions

View File

@ -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}")