From: Hypolite Petovan Date: Tue, 4 Sep 2018 23:29:36 +0000 (-0400) Subject: Remove extraneous SQL condition part in mod/unfollow X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9de0d354506fdb20929e68d10cf3680181d4382c;p=friendica.git Remove extraneous SQL condition part in mod/unfollow --- 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);