Channels for audio, video and images

This commit is contained in:
Michael 2023-09-02 15:52:53 +00:00
parent fdaff43039
commit 30d10c60d2
7 changed files with 160 additions and 61 deletions

View file

@ -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
*