From 581933f873e6b0600dd21eafd7f69870ccf162a6 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Sun, 22 Feb 2026 21:39:27 +1100 Subject: [PATCH] Fix unfriended date --- src/stores/user.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/src/stores/user.js b/src/stores/user.js index 66270cc2..1f6fc792 100644 --- a/src/stores/user.js +++ b/src/stores/user.js @@ -949,22 +949,23 @@ export const useUserStore = defineStore('User', () => { notification.created_at ); } - if (!D.dateFriended) { - if (notification.type === 'Unfriend') { - D.unFriended = true; - if ( - !appearanceSettingsStore.hideUnfriends - ) { - D.dateFriended = - notification.created_at; - } - } - if (notification.type === 'Friend') { - D.unFriended = false; + if ( + !D.dateFriended && + notification.type === 'Unfriend' + ) { + D.unFriended = true; + if ( + !appearanceSettingsStore.hideUnfriends + ) { D.dateFriended = notification.created_at; } } + if (notification.type === 'Friend') { + D.unFriended = false; + D.dateFriended = + notification.created_at; + } if ( notification.type === 'Friend' || (notification.type === 'Unfriend' &&