use Friendica\BaseModel;
/**
- * Model for interacting with a friend suggest
+ * Model for interacting with a friend suggestion
*
* @property int uid
* @property int cid
}
$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(),
$cid,
Protocol::DFRN,
}
} elseif ($cmd == Delivery::SUGGESTION) {
$suggest = DI::fsuggest()->getById($target_id);
- if (empty($suggest)) {
- return;
- }
$uid = $suggest->uid;
$recipients[] = $suggest->cid;
} elseif ($cmd == Delivery::REMOVAL) {