(string $scope, int $objectId)
| 448 | } |
| 449 | |
| 450 | private function removeFavoriteTag(string $scope, int $objectId): bool { |
| 451 | try { |
| 452 | return $this->tagManager->load($scope)->removeFromFavorites($objectId); |
| 453 | } catch (\Throwable $exception) { |
| 454 | // Nextcloud removes the stored favorite relation before its special |
| 455 | // favorite-tag cleanup tries to resolve the object id as a file node. |
| 456 | // Analytics ids are not file node ids, so the follow-up can throw after |
| 457 | // the unfavorite already succeeded from the app's point of view. |
| 458 | return true; |
| 459 | } |
| 460 | } |
| 461 | |
| 462 | /** |
| 463 | * Import Report from File |
no test coverage detected