mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-17 12:24:24 +01:00
accountStatusesController: fix oopsie whoopsie TypeError (gj TypeScript)
This commit is contained in:
@@ -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([]);
|
||||
|
||||
Reference in New Issue
Block a user