added mention created logging statement
This commit is contained in:
parent
ea3afa6720
commit
34dbc5a872
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue