RS, DG; stop crashing trying to socket albums

This commit is contained in:
Raphael 2010-08-11 16:40:08 -07:00
parent ab25e35a71
commit cf5476f601

View file

@ -58,7 +58,7 @@ class Person
model_class = class_name.to_s.camelize.constantize
post = model_class.instantiate(options)
post.notify_people
post.socket_to_uid owner.id if owner_id
post.socket_to_uid owner.id if (owner_id && post.respond_to?( :socket_to_uid))
post
end