mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 23:56:04 +02:00
fix: remove unused (also wrong) function
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user