Fix notifications.
This commit is contained in:
parent
e468075ffd
commit
b2f7ff5dd4
2 changed files with 2 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ module SocketsHelper
|
||||||
raise "#{object.inspect} with class #{object.class} is not actionhashable." unless object.is_a? Retraction
|
raise "#{object.inspect} with class #{object.class} is not actionhashable." unless object.is_a? Retraction
|
||||||
end
|
end
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
Rails.logger.error("event=socket_render status=fail user=#{user.diaspora_handle} object=#{object.id.to_s}")
|
Rails.logger.error(:event => :socket_render, :status => :fail, :user => user.diaspora_handle, :object=> object.id, :object_class => object.class)
|
||||||
raise e
|
raise e
|
||||||
end
|
end
|
||||||
action_hash = {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object)}
|
action_hash = {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object)}
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,4 @@
|
||||||
-# the COPYRIGHT file.
|
-# the COPYRIGHT file.
|
||||||
.notification
|
.notification
|
||||||
= person_image_tag(person)
|
= person_image_tag(person)
|
||||||
= link_to "#{person.name.titleize}", person_path(person.id)
|
= notification_message_for(note)
|
||||||
= object_link(note)
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue