improvements
This commit is contained in:
parent
c5653d30f3
commit
f21196df7c
|
@ -5,7 +5,7 @@ namespace Friendica\Model;
|
||||||
use Friendica\BaseModel;
|
use Friendica\BaseModel;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Model for interacting with a friend suggest
|
* Model for interacting with a friend suggestion
|
||||||
*
|
*
|
||||||
* @property int uid
|
* @property int uid
|
||||||
* @property int cid
|
* @property int cid
|
||||||
|
|
|
@ -76,7 +76,15 @@ class FriendSuggest extends BaseModule
|
||||||
}
|
}
|
||||||
|
|
||||||
$contacts = ContactModel::selectToArray(['id', 'name'], [
|
$contacts = ContactModel::selectToArray(['id', 'name'], [
|
||||||
'`uid` = ? AND NOT `self` AND NOT `blocked` AND NOT `pending` AND NOT `archive` AND NOT `deleted` AND `notify` != "" AND `id` != ? AND `network` = ?',
|
'`uid` = ?
|
||||||
|
AND `id` != ?
|
||||||
|
AND `network` = ?
|
||||||
|
AND NOT `self`
|
||||||
|
AND NOT `blocked`
|
||||||
|
AND NOT `pending`
|
||||||
|
AND NOT `archive`
|
||||||
|
AND NOT `deleted`
|
||||||
|
AND `notify` != ""',
|
||||||
local_user(),
|
local_user(),
|
||||||
$cid,
|
$cid,
|
||||||
Protocol::DFRN,
|
Protocol::DFRN,
|
||||||
|
|
|
@ -71,9 +71,6 @@ class Notifier
|
||||||
}
|
}
|
||||||
} elseif ($cmd == Delivery::SUGGESTION) {
|
} elseif ($cmd == Delivery::SUGGESTION) {
|
||||||
$suggest = DI::fsuggest()->getById($target_id);
|
$suggest = DI::fsuggest()->getById($target_id);
|
||||||
if (empty($suggest)) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
$uid = $suggest->uid;
|
$uid = $suggest->uid;
|
||||||
$recipients[] = $suggest->cid;
|
$recipients[] = $suggest->cid;
|
||||||
} elseif ($cmd == Delivery::REMOVAL) {
|
} elseif ($cmd == Delivery::REMOVAL) {
|
||||||
|
|
Loading…
Reference in a new issue