Fix same key bug

This commit is contained in:
Lim Chee Aun 2023-11-02 19:44:53 +08:00
parent 05ab42684b
commit 7f327e5980

View file

@ -159,8 +159,8 @@ function AccountStatuses() {
.next(); .next();
if (pinnedStatuses?.length && !tagged && !media) { if (pinnedStatuses?.length && !tagged && !media) {
pinnedStatuses.forEach((status) => { pinnedStatuses.forEach((status) => {
status._pinned = true;
saveStatus(status, instance); saveStatus(status, instance);
status._pinned = true;
}); });
if (pinnedStatuses.length >= 3) { if (pinnedStatuses.length >= 3) {
const pinnedStatusesIds = pinnedStatuses.map((status) => status.id); const pinnedStatusesIds = pinnedStatuses.map((status) => status.id);