1
0
Fork 0

Remove extraneous SQL condition part in mod/unfollow

This commit is contained in:
Hypolite Petovan 2018-09-04 19:29:36 -04:00
parent 62c5e5d861
commit 9de0d35450

View file

@ -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);