From 5a3d112396043896723f6643a4af4bcaa88d0064 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 3 Sep 2023 19:18:05 -0500 Subject: [PATCH] frontendConfigController: add a #d filter --- src/controllers/api/pleroma.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/controllers/api/pleroma.ts b/src/controllers/api/pleroma.ts index 396df5c..e69b27e 100644 --- a/src/controllers/api/pleroma.ts +++ b/src/controllers/api/pleroma.ts @@ -6,9 +6,12 @@ import { createAdminEvent } from '@/utils/web.ts'; import { Conf } from '@/config.ts'; const frontendConfigController: AppController = async (c) => { - const [event] = await eventsDB.getFilters( - [{ kinds: [30078], authors: [Conf.pubkey], limit: 1 }], - ); + const [event] = await eventsDB.getFilters([{ + kinds: [30078], + authors: [Conf.pubkey], + '#d': ['pub.ditto.frontendConfig'], + limit: 1, + }]); if (event) { const data = JSON.parse(event.content);