Remove favorite when unfriending

This commit is contained in:
Natsumi
2025-12-03 15:54:44 +13:00
parent e76d39b72b
commit 25296e21b1
3 changed files with 5 additions and 4 deletions
+2 -3
View File
@@ -307,12 +307,11 @@ export const useFavoriteStore = defineStore('Favorite', () => {
}
}
function handleFavoriteDelete(args) {
const ref = getCachedFavoritesByObjectId(args.params.objectId);
function handleFavoriteDelete(objectId) {
const ref = getCachedFavoritesByObjectId(objectId);
if (typeof ref === 'undefined') {
return;
}
args.ref = ref;
handleFavoriteAtDelete(ref);
}