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