mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:50:11 +00:00
Some more unneeded settings removed
This commit is contained in:
parent
858b63656e
commit
7ee9aad6ca
6 changed files with 2 additions and 75 deletions
|
@ -640,35 +640,6 @@ class Contact
|
|||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the count of OStatus contacts in a group
|
||||
*
|
||||
* @param int $gid
|
||||
* @return int
|
||||
* @throws \Exception
|
||||
*/
|
||||
public static function getOStatusCountByGroupId($gid)
|
||||
{
|
||||
$return = 0;
|
||||
if (intval($gid)) {
|
||||
$contacts = DBA::fetchFirst('SELECT COUNT(*) AS `count`
|
||||
FROM `contact`
|
||||
INNER JOIN `group_member`
|
||||
ON `contact`.`id` = `group_member`.`contact-id`
|
||||
WHERE `gid` = ?
|
||||
AND `contact`.`uid` = ?
|
||||
AND `contact`.`network` = ?
|
||||
AND `contact`.`notify` != ""',
|
||||
$gid,
|
||||
local_user(),
|
||||
Protocol::OSTATUS
|
||||
);
|
||||
$return = $contacts['count'];
|
||||
}
|
||||
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates the self-contact for the provided user id
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue