Fix unfriended date

This commit is contained in:
Natsumi
2026-02-22 21:39:27 +11:00
parent cbe6b73d0b
commit 581933f873

View File

@@ -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' &&