mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 20:04:32 +02:00
Fix code style
This commit is contained in:
parent
77e785dd7d
commit
674b6c55de
18 changed files with 81 additions and 87 deletions
|
@ -83,7 +83,10 @@ class Introduction extends BaseRepository
|
|||
$BaseCollection = parent::_selectByBoundaries(
|
||||
['`uid` = ? AND NOT `ignore`',$uid],
|
||||
['order' => ['id' => 'DESC']],
|
||||
$min_id, $max_id, $limit);
|
||||
$min_id,
|
||||
$max_id,
|
||||
$limit
|
||||
);
|
||||
} catch (\Exception $e) {
|
||||
throw new IntroductionPersistenceException(sprintf('Cannot select Introductions for used %d', $uid), $e);
|
||||
}
|
||||
|
|
|
@ -121,8 +121,7 @@ class PostMedia extends BaseEntity
|
|||
?UriInterface $publisherImage = null,
|
||||
?string $blurhash = null,
|
||||
int $id = null
|
||||
)
|
||||
{
|
||||
) {
|
||||
$this->uriId = $uriId;
|
||||
$this->url = $url;
|
||||
$this->type = $type;
|
||||
|
|
|
@ -87,25 +87,17 @@ class Security
|
|||
$acc_sql = ' OR `accessible`';
|
||||
}
|
||||
|
||||
/*
|
||||
* Construct permissions
|
||||
*
|
||||
* default permissions - anonymous user
|
||||
*/
|
||||
// Construct permissions: default permissions - anonymous user
|
||||
$sql = " AND (allow_cid = ''
|
||||
AND allow_gid = ''
|
||||
AND deny_cid = ''
|
||||
AND deny_gid = ''" . $acc_sql . ") ";
|
||||
|
||||
/*
|
||||
* Profile owner - everything is visible
|
||||
*/
|
||||
if ($local_user && $local_user == $owner_id) {
|
||||
// Profile owner - everything is visible
|
||||
$sql = '';
|
||||
/*
|
||||
* Authenticated visitor. Load the circles the visitor belongs to.
|
||||
*/
|
||||
} elseif ($remote_contact) {
|
||||
// Authenticated visitor. Load the circles the visitor belongs to.
|
||||
$circleIds = '<<>>'; // should be impossible to match
|
||||
|
||||
foreach (Circle::getIdsByContactId($remote_contact) as $circleId) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue