diff --git a/api/paidAction/itemCreate.js b/api/paidAction/itemCreate.js index 9c099f84..2ed2f634 100644 --- a/api/paidAction/itemCreate.js +++ b/api/paidAction/itemCreate.js @@ -194,8 +194,6 @@ export async function onPaid ({ invoice, id }, context) { INSERT INTO pgboss.job (name, data, retrylimit, retrybackoff, startafter) VALUES ('imgproxy', jsonb_build_object('id', ${item.id}::INTEGER), 21, true, now() + interval '5 seconds')` - // TODO: referals for boost - if (item.parentId) { // denormalize ncomments, lastCommentAt, and "weightedComments" for ancestors, and insert into reply table await tx.$executeRaw` diff --git a/api/paidAction/itemUpdate.js b/api/paidAction/itemUpdate.js index 15b2420a..a0dfaf21 100644 --- a/api/paidAction/itemUpdate.js +++ b/api/paidAction/itemUpdate.js @@ -131,8 +131,6 @@ export async function perform (args, context) { await performBotBehavior(args, context) - // TODO: referals for boost - // compare timestamps to only notify if mention or item referral was just created to avoid duplicates on edits for (const { userId, createdAt } of item.mentions) { if (item.updatedAt.getTime() !== createdAt.getTime()) continue diff --git a/api/paidAction/zap.js b/api/paidAction/zap.js index 40dce138..969e2039 100644 --- a/api/paidAction/zap.js +++ b/api/paidAction/zap.js @@ -143,7 +143,6 @@ export async function onPaid ({ invoice, actIds }, { models, tx }) { FROM zapped WHERE "Item".path @> zapped.path AND "Item".id <> zapped.id` - // TODO: referrals notifyZapped({ models, item }).catch(console.error) }