give follows a bogus notice id so they appear in notifications

This commit is contained in:
Hannes Mannerheim 2015-01-21 17:49:59 +01:00
parent 017310b8f3
commit 3f81c0816a

View File

@ -588,7 +588,7 @@ class QvitterPlugin extends Plugin {
// don't notify people favoriting their own notices
if($notice->profile_id != $profile->id) {
$this->insertNotification($notice->profile_id, $profile->id, 'like', $notice->id, $notice->id);
$this->insertNotification($notice->profile_id, $profile->id, 'like', $notice->id);
}
}
@ -697,7 +697,7 @@ class QvitterPlugin extends Plugin {
public function onEndSubscribe($subscriber, $other)
{
if(Subscription::exists($subscriber, $other)) {
$this->insertNotification($other->id, $subscriber->id, 'follow');
$this->insertNotification($other->id, $subscriber->id, 'follow', 1);
}
return true;