parent
0b5bf2e340
commit
2571b042c6
1 changed files with 3 additions and 2 deletions
|
|
@ -44,8 +44,9 @@ class Postzord::Receiver::Private < Postzord::Receiver
|
||||||
def receive_object
|
def receive_object
|
||||||
obj = @object.receive(@user, @author)
|
obj = @object.receive(@user, @author)
|
||||||
Notification.notify(@user, obj, @author) if obj.respond_to?(:notification_type)
|
Notification.notify(@user, obj, @author) if obj.respond_to?(:notification_type)
|
||||||
logger.info "user:#{@user.id} successfully received #{@object.class} from person #{@sender.guid}: " \
|
logger.info "user:#{@user.id} successfully received #{@object.class} from person #{@sender.guid}" \
|
||||||
"#{@object.inspect}"
|
"#{": #{@object.guid}" if @object.respond_to?(:guid)}"
|
||||||
|
logger.debug "received: #{@object.inspect}"
|
||||||
obj
|
obj
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue