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
);
}
if (!D.dateFriended) {
if (notification.type === 'Unfriend') {
if (
!D.dateFriended &&
notification.type === 'Unfriend'
) {
D.unFriended = true;
if (
!appearanceSettingsStore.hideUnfriends
@@ -964,7 +966,6 @@ export const useUserStore = defineStore('User', () => {
D.dateFriended =
notification.created_at;
}
}
if (
notification.type === 'Friend' ||
(notification.type === 'Unfriend' &&