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);