Fix notifications.

This commit is contained in:
Raphael Sofaer 2011-06-26 21:59:04 -07:00
parent e468075ffd
commit b2f7ff5dd4
2 changed files with 2 additions and 3 deletions

View file

@ -59,7 +59,7 @@ module SocketsHelper
raise "#{object.inspect} with class #{object.class} is not actionhashable." unless object.is_a? Retraction
end
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
end
action_hash = {:class =>object.class.to_s.underscore.pluralize, :html => v, :post_id => obj_id(object)}

View file

@ -3,5 +3,4 @@
-# the COPYRIGHT file.
.notification
= person_image_tag(person)
= link_to "#{person.name.titleize}", person_path(person.id)
= object_link(note)
= notification_message_for(note)