We have to check for "0" in "rel" as well
This commit is contained in:
parent
f185f6fd3d
commit
323285216b
2 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ function notifications_post(App $a)
|
|||
// The check for pending is in case the friendship was already approved
|
||||
// and we just want to get rid of the pending contact
|
||||
$condition = ['id' => $contact_id, 'uid' => local_user(),
|
||||
'self' => false, 'pending' => true, 'rel' => Contact::FOLLOWER];
|
||||
'self' => false, 'pending' => true, 'rel' => [0, Contact::FOLLOWER]];
|
||||
if (DBA::exists('contact', $condition)) {
|
||||
Contact::remove($contact_id);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue