Fix unfriended date

This commit is contained in:
Natsumi
2026-02-22 21:39:27 +11:00
parent cbe6b73d0b
commit 581933f873
+13 -12
View File
@@ -949,22 +949,23 @@ export const useUserStore = defineStore('User', () => {
notification.created_at notification.created_at
); );
} }
if (!D.dateFriended) { if (
if (notification.type === 'Unfriend') { !D.dateFriended &&
D.unFriended = true; notification.type === 'Unfriend'
if ( ) {
!appearanceSettingsStore.hideUnfriends D.unFriended = true;
) { if (
D.dateFriended = !appearanceSettingsStore.hideUnfriends
notification.created_at; ) {
}
}
if (notification.type === 'Friend') {
D.unFriended = false;
D.dateFriended = D.dateFriended =
notification.created_at; notification.created_at;
} }
} }
if (notification.type === 'Friend') {
D.unFriended = false;
D.dateFriended =
notification.created_at;
}
if ( if (
notification.type === 'Friend' || notification.type === 'Friend' ||
(notification.type === 'Unfriend' && (notification.type === 'Unfriend' &&