(string $scope, int $objectId)
| 365 | } |
| 366 | |
| 367 | private function removeFavoriteTag(string $scope, int $objectId): bool { |
| 368 | try { |
| 369 | return $this->tagManager->load($scope)->removeFromFavorites($objectId); |
| 370 | } catch (\Throwable $exception) { |
| 371 | // Nextcloud removes the stored favorite relation before its special |
| 372 | // favorite-tag cleanup tries to resolve the object id as a file node. |
| 373 | // Analytics ids are not file node ids, so the follow-up can throw after |
| 374 | // the unfavorite already succeeded from the app's point of view. |
| 375 | return true; |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * search for reports |
no test coverage detected