kopia lustrzana https://github.com/nextcloud/social
Merge pull request #1054 from nextcloud/self-profile-show-all
show all activity when viewing your own profile, not just public acti…pull/1066/head
commit
e6a6fe7b77
|
@ -408,7 +408,9 @@ class SocialLimitsQueryBuilder extends SocialCrossQueryBuilder {
|
|||
$andX = $expr->andX();
|
||||
|
||||
$andX->add($expr->eq($alias . '.stream_id', $this->getDefaultSelectAlias() . '.id_prim'));
|
||||
$andX->add($this->exprLimitToDBField('actor_id', $this->prim($actorId), true, true, $alias));
|
||||
if ($actorId) {
|
||||
$andX->add($this->exprLimitToDBField('actor_id', $this->prim($actorId), true, true, $alias));
|
||||
}
|
||||
$andX->add($this->exprLimitToDBField('type', $type, true, true, $alias));
|
||||
|
||||
if ($subType !== '') {
|
||||
|
|
|
@ -489,7 +489,8 @@ class StreamRequest extends StreamRequestBuilder {
|
|||
|
||||
$qb->selectDestFollowing('sd', '');
|
||||
$qb->innerJoinSteamDest('recipient', 'id_prim', 'sd', 's');
|
||||
$qb->limitToDest(ACore::CONTEXT_PUBLIC, 'recipient', '', 'sd');
|
||||
$accountIsViewer = ($qb->hasViewer()) ? ($qb->getViewer()->getId() === $actorId) : false;
|
||||
$qb->limitToDest($accountIsViewer ? '' : ACore::CONTEXT_PUBLIC, 'recipient', '', 'sd');
|
||||
|
||||
$qb->linkToCacheActors('ca', 's.attributed_to_prim');
|
||||
$qb->leftJoinStreamAction();
|
||||
|
|
Ładowanie…
Reference in New Issue