mirror of
https://github.com/nextcloud/spreed.git
synced 2025-12-18 05:20:50 +01:00
perf(shares): Don't create share objects that we destroy later on again
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
ab762a86f3
commit
915747bd57
1 changed files with 4 additions and 0 deletions
|
|
@ -831,6 +831,10 @@ class RoomShareProvider implements IShareProvider {
|
|||
|
||||
$cursor = $qb->executeQuery();
|
||||
while ($data = $cursor->fetch()) {
|
||||
if ($data['uid_initiator'] === $userId || $data['uid_owner'] === $userId) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!$this->isAccessibleResult($data)) {
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue