(string $scope, int $objectId)
| 257 | } |
| 258 | |
| 259 | private function removeFavoriteTag(string $scope, int $objectId): bool { |
| 260 | try { |
| 261 | return $this->tagManager->load($scope)->removeFromFavorites($objectId); |
| 262 | } catch (\Throwable $exception) { |
| 263 | // Nextcloud removes the stored favorite relation before its special |
| 264 | // favorite-tag cleanup tries to resolve the object id as a file node. |
| 265 | // Analytics ids are not file node ids, so the follow-up can throw after |
| 266 | // the unfavorite already succeeded from the app's point of view. |
| 267 | return true; |
| 268 | } |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | * search for reports |
no test coverage detected