From 9de0d354506fdb20929e68d10cf3680181d4382c Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 4 Sep 2018 19:29:36 -0400 Subject: [PATCH] Remove extraneous SQL condition part in mod/unfollow --- mod/unfollow.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/unfollow.php b/mod/unfollow.php index 0af16ec671..f9b0a2fcba 100644 --- a/mod/unfollow.php +++ b/mod/unfollow.php @@ -29,7 +29,7 @@ function unfollow_post() $uid = local_user(); $url = notags(trim(defaults($_REQUEST, 'url', ''))); - $condition = ["`uid` = ? AND (`rel` = ? OR `rel` = ?) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?) AND `network` != ?", + $condition = ["`uid` = ? AND (`rel` = ? OR `rel` = ?) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?)", $uid, Contact::SHARING, Contact::FRIEND, normalise_link($url), normalise_link($url), $url]; $contact = DBA::selectFirst('contact', [], $condition); -- 2.39.5