Fix unfriended date

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