mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
refactor: rename officialDittoAccountPubkey to dittoPubkey & officialDittoAccountMsg to dittoMsg
This commit is contained in:
parent
a0c952b9b9
commit
7cdfb67b99
1 changed files with 4 additions and 4 deletions
|
|
@ -16,16 +16,16 @@ const instanceV1Controller: AppController = async (c) => {
|
||||||
|
|
||||||
let zap_split: DittoZapSplits | undefined = await getZapSplits(store, Conf.pubkey);
|
let zap_split: DittoZapSplits | undefined = await getZapSplits(store, Conf.pubkey);
|
||||||
if (!zap_split) {
|
if (!zap_split) {
|
||||||
const officialDittoAccountPubkey = '781a1527055f74c1f70230f10384609b34548f8ab6a0a6caa74025827f9fdae5';
|
const dittoPubkey = '781a1527055f74c1f70230f10384609b34548f8ab6a0a6caa74025827f9fdae5';
|
||||||
const officialDittoAccountMsg = 'Official Ditto Account';
|
const dittoMsg = 'Official Ditto Account';
|
||||||
await createAdminEvent({
|
await createAdminEvent({
|
||||||
kind: 30078,
|
kind: 30078,
|
||||||
tags: [
|
tags: [
|
||||||
['d', 'pub.ditto.zapSplits'],
|
['d', 'pub.ditto.zapSplits'],
|
||||||
['p', officialDittoAccountPubkey, '5', officialDittoAccountMsg],
|
['p', dittoPubkey, '5', dittoMsg],
|
||||||
],
|
],
|
||||||
}, c);
|
}, c);
|
||||||
zap_split = { [officialDittoAccountPubkey]: ['5', officialDittoAccountMsg] };
|
zap_split = { [dittoPubkey]: ['5', dittoMsg] };
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Protocol to use for WebSocket URLs, depending on the protocol of the `LOCAL_DOMAIN`. */
|
/** Protocol to use for WebSocket URLs, depending on the protocol of the `LOCAL_DOMAIN`. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue