(string $scope, int $objectId)
| 319 | } |
| 320 | |
| 321 | private function removeFavoriteTag(string $scope, int $objectId): bool { |
| 322 | try { |
| 323 | return $this->tagManager->load($scope)->removeFromFavorites($objectId); |
| 324 | } catch (\Throwable $exception) { |
| 325 | // Nextcloud removes the stored favorite relation before its special |
| 326 | // favorite-tag cleanup tries to resolve the object id as a file node. |
| 327 | // Analytics ids are not file node ids, so the follow-up can throw after |
| 328 | // the unfavorite already succeeded from the app's point of view. |
| 329 | return true; |
| 330 | } |
| 331 | } |
| 332 | |
| 333 | /** |
| 334 | * search for reports |
no test coverage detected