give follows a bogus notice id so they appear in notifications
This commit is contained in:
parent
017310b8f3
commit
3f81c0816a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user