notifications: fix notification generation for non-create activities
authorWilliam Pitcock <nenolod@dereferenced.org>
Sat, 22 Jun 2019 06:44:47 +0000 (06:44 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Sat, 22 Jun 2019 06:44:47 +0000 (06:44 +0000)
commit642630140702cb22cafc2f2307c2ce2c031c95c7
tree8044ffa48f643c89ee92aca7cf4add5c6dfffedf
parentddd04d1c52a0ce7cc44f14c736cb2271ecf279e9
notifications: fix notification generation for non-create activities

in 300d94c62, an Object.normalize() call was introduced.  calling Object.normalize()
on an activity with a non-object URI (say, a user) causes Really Bad Things to happen.
so don't do that.
lib/pleroma/notification.ex