mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 09:34:26 +02:00
Channels for audio, video and images
This commit is contained in:
parent
fdaff43039
commit
30d10c60d2
7 changed files with 160 additions and 61 deletions
|
@ -533,6 +533,17 @@ class Contact
|
|||
return self::isSharing($cid, $uid, $strict);
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if the provided public contact id has got followers on this system
|
||||
*
|
||||
* @param integer $cid
|
||||
* @return boolean
|
||||
*/
|
||||
public static function hasFollowers(int $cid): bool
|
||||
{
|
||||
return DBA::exists('account-user-view', ["`pid` = ? AND `uid` != ? AND `rel` IN (?, ?)", $cid, 0, self::SHARING, self::FRIEND]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the basepath for a given contact link
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue