added mention created logging statement

This commit is contained in:
zhitomirskiyi 2011-02-11 17:36:21 -08:00
parent ea3afa6720
commit 34dbc5a872

View file

@ -13,6 +13,7 @@ class Mention < ActiveRecord::Base
after_destroy :delete_notification after_destroy :delete_notification
def notify_recipient def notify_recipient
Rails.logger.info "event=mention_sent id=#{self.id} to=#{person.diaspora_handle} from=#{post.person.diaspora_handle}"
Notification.notify(person.owner, self, post.person) unless person.remote? Notification.notify(person.owner, self, post.person) unless person.remote?
end end