Merge pull request #5720 from MrPetovan/bug/fix-unfollow
Remove extraneous SQL condition part in mod/unfollow
This commit is contained in:
commit
d7bb671b77
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function unfollow_post()
|
||||||
$uid = local_user();
|
$uid = local_user();
|
||||||
$url = notags(trim(defaults($_REQUEST, 'url', '')));
|
$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),
|
$uid, Contact::SHARING, Contact::FRIEND, normalise_link($url),
|
||||||
normalise_link($url), $url];
|
normalise_link($url), $url];
|
||||||
$contact = DBA::selectFirst('contact', [], $condition);
|
$contact = DBA::selectFirst('contact', [], $condition);
|
||||||
|
|
Loading…
Reference in a new issue