Skip to content

Node.js based forum software built for the modern web

fix: remove unused (also wrong) function

Julian Lam6d3d4fbf065c
diff --git a/src/activitypub/index.js b/src/activitypub/index.js
index ff3aaa3bb5..95c509d451 100644
--- a/src/activitypub/index.js
+++ b/src/activitypub/index.js
@@ -488,10 +488,6 @@ ActivityPub.buildRecipients = async function (object, options) {
* - `targets`: boolean; whether to calculate targets (default: true)
*/
- const getMainPid = async (pid) => {
- const { tid } = await posts.getPostField(pid, 'tid');
- return db.getSortedSetMember('tid:' + tid + ':posts', 0);
- };
let { to, cc } = object;
to = new Set(to);
cc = new Set(cc);