diff --git a/src/controllers/api/ditto.ts b/src/controllers/api/ditto.ts index 899456a4..b9be027f 100644 --- a/src/controllers/api/ditto.ts +++ b/src/controllers/api/ditto.ts @@ -276,10 +276,12 @@ export const statusZapSplitsController: AppController = async (c) => { const weight = percentageSchema.catch(0).parse(zapsTag.find((name) => name[1] === pubkey)![3]) ?? 0; + const message = zapsTag.find((name) => name[1] === pubkey)![4] ?? ''; + return { account, - message: '', - weight: weight, + message, + weight, }; }))).filter((zapSplit) => zapSplit.weight > 0); diff --git a/src/controllers/api/statuses.ts b/src/controllers/api/statuses.ts index 0b910369..621e26a8 100644 --- a/src/controllers/api/statuses.ts +++ b/src/controllers/api/statuses.ts @@ -177,7 +177,7 @@ const createStatusController: AppController = async (c) => { let totalSplit = 0; for (const pubkey in dittoZapSplit) { totalSplit += dittoZapSplit[pubkey].weight; - tags.push(['zap', pubkey, Conf.relay, dittoZapSplit[pubkey].weight.toString()]); + tags.push(['zap', pubkey, Conf.relay, dittoZapSplit[pubkey].weight.toString(), dittoZapSplit[pubkey].message]); } if (totalSplit) { tags.push(['zap', author?.pubkey as string, Conf.relay, Math.max(0, 100 - totalSplit).toString()]);