summaryrefslogtreecommitdiffstats
path: root/lib/private/Collaboration
diff options
context:
space:
mode:
authorJulien Veyssier <julien-nc@posteo.net>2023-01-26 12:50:00 +0100
committerJulius Härtl <jus@bitgrid.net>2023-01-27 11:10:56 +0100
commit8766e4f2429954408e8a7424430e677a69228f8a (patch)
tree2034c5c707a84c1fa3f033772ea84762c6b561a2 /lib/private/Collaboration
parent48f34736cd0ea629a1102b66cc4a67adc2e11321 (diff)
downloadnextcloud-server-8766e4f2429954408e8a7424430e677a69228f8a.tar.gz
nextcloud-server-8766e4f2429954408e8a7424430e677a69228f8a.zip
handle and return touchProvider errors
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r--lib/private/Collaboration/Reference/ReferenceManager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Collaboration/Reference/ReferenceManager.php b/lib/private/Collaboration/Reference/ReferenceManager.php
index 381f3aea8f4..5db30a50ea6 100644
--- a/lib/private/Collaboration/Reference/ReferenceManager.php
+++ b/lib/private/Collaboration/Reference/ReferenceManager.php
@@ -242,7 +242,7 @@ class ReferenceManager implements IReferenceManager {
/**
* @inheritDoc
*/
- public function touchProvider(string $userId, string $providerId, ?int $timestamp = null): void {
+ public function touchProvider(string $userId, string $providerId, ?int $timestamp = null): bool {
$providers = $this->getDiscoverableProviders();
$providerIds = array_map(static function (IDiscoverableReferenceProvider $provider) {
return $provider->getId();
@@ -254,7 +254,9 @@ class ReferenceManager implements IReferenceManager {
}
$this->config->setUserValue($userId, 'references', $configKey, (string) $timestamp);
+ return true;
}
+ return false;
}
/**