diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-10-19 12:22:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-19 12:22:12 +0300 |
commit | d6c536d54589cfcf70d481d3035068a9910a14aa (patch) | |
tree | 6c29d557b10544dc11fabee1c95b347be6a41d0c /lib/Share | |
parent | 1903ad20c6855631f60fb01b0b7572a84d0d264f (diff) | |
parent | 9e8d94d58f4cf230e08fbca95393040c44acbd50 (diff) |
Merge pull request #6365 from nextcloud/techdebt/noid/replace-old-type-constants
Replace old type constants with new ones
Diffstat (limited to 'lib/Share')
-rw-r--r-- | lib/Share/Helper/ShareAPIController.php | 2 | ||||
-rw-r--r-- | lib/Share/RoomShareProvider.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Share/Helper/ShareAPIController.php b/lib/Share/Helper/ShareAPIController.php index aefccb229..29faae6db 100644 --- a/lib/Share/Helper/ShareAPIController.php +++ b/lib/Share/Helper/ShareAPIController.php @@ -93,7 +93,7 @@ class ShareAPIController { // so the avatars for conversations are distinguishable $result['share_with'] = 'private_conversation_' . substr(sha1($room->getName() . $room->getId()), 0, 6); } - if ($room->getType() === Room::PUBLIC_CALL) { + if ($room->getType() === Room::TYPE_PUBLIC) { $result['token'] = $share->getToken(); } $result['share_with_link'] = $this->urlGenerator->linkToRouteAbsolute('spreed.Page.showCall', ['token' => $room->getToken()]); diff --git a/lib/Share/RoomShareProvider.php b/lib/Share/RoomShareProvider.php index 0f0ec6f9d..66d1c3d80 100644 --- a/lib/Share/RoomShareProvider.php +++ b/lib/Share/RoomShareProvider.php @@ -894,7 +894,7 @@ class RoomShareProvider implements IShareProvider { throw new ShareNotFound(); } - if ($room->getType() !== Room::PUBLIC_CALL) { + if ($room->getType() !== Room::TYPE_PUBLIC) { throw new ShareNotFound(); } |