mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
accountStatusesController: fix oopsie whoopsie TypeError (gj TypeScript)
This commit is contained in:
parent
6bdd29922a
commit
766290bd45
1 changed files with 1 additions and 1 deletions
|
|
@ -181,7 +181,7 @@ const accountStatusesController: AppController = async (c) => {
|
|||
const store = await Storages.db();
|
||||
|
||||
const [user] = await store.query([{ kinds: [30382], authors: [Conf.pubkey], '#d': [pubkey], limit: 1 }], { signal });
|
||||
const names = getTagSet(user?.tags, 'n');
|
||||
const names = getTagSet(user?.tags ?? [], 'n');
|
||||
|
||||
if (names.has('disabled')) {
|
||||
return c.json([]);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue