Switch captcha_solved from a label event to an n-tag on a user event

This commit is contained in:
Alex Gleason
2024-10-11 16:50:52 -05:00
parent c5ddd2ebb7
commit a484634d36
3 changed files with 7 additions and 35 deletions

View File

@@ -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,