mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
fix: stop captcha showing up
This commit is contained in:
parent
e0d9e83f28
commit
b5221eb43a
1 changed files with 2 additions and 0 deletions
|
|
@ -290,6 +290,7 @@ const updateCredentialsController: AppController = async (c) => {
|
||||||
const body = await parseBody(c.req.raw);
|
const body = await parseBody(c.req.raw);
|
||||||
const result = updateCredentialsSchema.safeParse(body);
|
const result = updateCredentialsSchema.safeParse(body);
|
||||||
const store = await Storages.db();
|
const store = await Storages.db();
|
||||||
|
const signal = c.req.raw.signal;
|
||||||
|
|
||||||
if (!result.success) {
|
if (!result.success) {
|
||||||
return c.json(result.error, 422);
|
return c.json(result.error, 422);
|
||||||
|
|
@ -355,6 +356,7 @@ const updateCredentialsController: AppController = async (c) => {
|
||||||
|
|
||||||
let account: MastodonAccount;
|
let account: MastodonAccount;
|
||||||
if (event) {
|
if (event) {
|
||||||
|
await hydrateEvents({ events: [event], store, signal });
|
||||||
account = await renderAccount(event, { withSource: true, settingsStore });
|
account = await renderAccount(event, { withSource: true, settingsStore });
|
||||||
} else {
|
} else {
|
||||||
account = await accountFromPubkey(pubkey, { withSource: true, settingsStore });
|
account = await accountFromPubkey(pubkey, { withSource: true, settingsStore });
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue