mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
refactor: use exclamation mark (bang) instead of 'as string' cast
This commit is contained in:
parent
80e14c65c0
commit
de32930c44
1 changed files with 1 additions and 1 deletions
|
|
@ -176,7 +176,7 @@ const createStatusController: AppController = async (c) => {
|
|||
const quoteCompat = data.quote_id ? `\n\nnostr:${nip19.noteEncode(data.quote_id)}` : '';
|
||||
const mediaCompat = mediaUrls.length ? `\n\n${mediaUrls.join('\n')}` : '';
|
||||
|
||||
const author = await getAuthor(await c.get('signer')?.getPublicKey() as string);
|
||||
const author = await getAuthor(await c.get('signer')?.getPublicKey()!);
|
||||
|
||||
const meta = n.json().pipe(n.metadata()).catch({}).parse(author?.content);
|
||||
const lnurl = getLnurl(meta);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue