From b517f05e90c3211b58553a22cb2df9ca346efdf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sat, 8 Mar 2025 00:39:46 -0500 Subject: [PATCH 1/2] refactor: use navAdmin --- test/navigation.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/navigation.js b/test/navigation.js index 765e649d20..78e2b4447c 100644 --- a/test/navigation.js +++ b/test/navigation.js @@ -8,9 +8,8 @@ const navAdmin = require('../src/navigation/admin'); describe('Navigation', () => { before(async () => { - const navigation = require('../src/navigation/admin'); const data = require('../install/data/navigation.json'); - await navigation.save(data); + await navAdmin.save(data); }); it('should toggle /world route when ap is toggled', async () => { From 6b9f166cb8391f64c7764a22c1bb03a7c53d0523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Sun, 9 Mar 2025 11:14:16 -0400 Subject: [PATCH 2/2] fix: don't update topic lastposttime by announce this was causing topics to show up as unread eventhough there are no new posts and out of order on /recent --- src/activitypub/inbox.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/activitypub/inbox.js b/src/activitypub/inbox.js index e9b17d92c8..4da0800670 100644 --- a/src/activitypub/inbox.js +++ b/src/activitypub/inbox.js @@ -297,7 +297,6 @@ inbox.announce = async (req) => { } ({ tid } = assertion); - await topics.updateLastPostTime(tid, timestamp); await activitypub.notes.updateLocalRecipients(pid, { to, cc }); await activitypub.notes.syncUserInboxes(tid); }