mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-20 20:45:55 +01:00
Switch captcha_solved from a label event to an n-tag on a user event
This commit is contained in:
@@ -15,7 +15,6 @@ import { renderEmojis } from '@/views/mastodon/emojis.ts';
|
||||
type ToAccountOpts = {
|
||||
withSource: true;
|
||||
settingsStore: Record<string, unknown> | undefined;
|
||||
captcha: NostrEvent | undefined;
|
||||
} | {
|
||||
withSource?: false;
|
||||
};
|
||||
@@ -91,7 +90,7 @@ async function renderAccount(
|
||||
nip05,
|
||||
},
|
||||
ditto: {
|
||||
captcha_solved: Boolean(opts.captcha),
|
||||
captcha_solved: names.has('captcha_solved'),
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
|
||||
Reference in New Issue
Block a user