fix: remove unused (also wrong) function

This commit is contained in:
Julian Lam
2026-04-20 16:41:19 -04:00
parent dc5378a98f
commit 6d3d4fbf06

View File

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