put in name, subject, and fake body for Added To Conversation notification

Change-Id: Ia194aac3984805ff91b7600023f8a4b915ddff7e
Reviewed-on: https://gerrit.instructure.com/5180
Reviewed-by: Zach Wily <zach@instructure.com>
Tested-by: Hudson <hudson@instructure.com>
This commit is contained in:
Jacob Fugal 2011-08-20 07:44:12 -06:00
parent ccbf57557d
commit 64ed879371
1 changed files with 9 additions and 1 deletions

View File

@ -727,7 +727,15 @@ namespace :db do
<%= strip_and_truncate(asset.body, :max_length => 50) %>
}
create_notification 'AddedToConversation', 'Added To Conversation', 0, 'http://<%= HostUrl.default_host %>', ""
create_notification 'AddedToConversation', 'Added To Conversation', 0, 'http://<%= HostUrl.default_host %>', %{
Added To Conversation
Added to a conversation by <%= user.name rescue 'Unknown User' %>
<%= user.name rescue 'Unknown User' %> just added you to a conversation in Canvas.
<%= main_link %>
}
create_notification 'GroupMembership', 'Membership Update', 0,
'http://<%= HostUrl.context_host(asset.group.context) %>/<%= asset.group.context.class.to_s.downcase.pluralize %>/<%= asset.context_id %>/groups', %{