(string $scope, int $objectId)
| 424 | } |
| 425 | |
| 426 | private function removeFavoriteTag(string $scope, int $objectId): bool { |
| 427 | try { |
| 428 | return $this->tagManager->load($scope)->removeFromFavorites($objectId); |
| 429 | } catch (\Throwable $exception) { |
| 430 | // Nextcloud removes the stored favorite relation before its special |
| 431 | // favorite-tag cleanup tries to resolve the object id as a file node. |
| 432 | // Analytics ids are not file node ids, so the follow-up can throw after |
| 433 | // the unfavorite already succeeded from the app's point of view. |
| 434 | return true; |
| 435 | } |
| 436 | } |
| 437 | |
| 438 | /** |
| 439 | * Import Report from File |
no test coverage detected