diff --git a/src/controllers/api/pleroma.ts b/src/controllers/api/pleroma.ts index f428ce9..31d8545 100644 --- a/src/controllers/api/pleroma.ts +++ b/src/controllers/api/pleroma.ts @@ -157,7 +157,7 @@ const pleromaAdminSuggestController: AppController = async (c) => { for (const nickname of nicknames) { const pubkey = await lookupPubkey(nickname); if (!pubkey) continue; - await updateUser(pubkey, { suggest: true }, c); + await updateUser(pubkey, { suggested: true }, c); } return new Response(null, { status: 204 }); @@ -169,7 +169,7 @@ const pleromaAdminUnsuggestController: AppController = async (c) => { for (const nickname of nicknames) { const pubkey = await lookupPubkey(nickname); if (!pubkey) continue; - await updateUser(pubkey, { suggest: false }, c); + await updateUser(pubkey, { suggested: false }, c); } return new Response(null, { status: 204 }); diff --git a/src/controllers/api/suggestions.ts b/src/controllers/api/suggestions.ts index c31ffc0..7e461c4 100644 --- a/src/controllers/api/suggestions.ts +++ b/src/controllers/api/suggestions.ts @@ -31,7 +31,7 @@ async function renderV2Suggestions(c: AppContext, params: PaginatedListParams, s const pubkey = await signer?.getPublicKey(); const filters: NostrFilter[] = [ - { kinds: [30382], authors: [Conf.pubkey], '#n': ['suggest'], limit }, + { kinds: [30382], authors: [Conf.pubkey], '#n': ['suggested'], limit }, { kinds: [1985], '#L': ['pub.ditto.trends'], '#l': [`#p`], authors: [Conf.pubkey], limit: 1 }, ]; @@ -43,7 +43,7 @@ async function renderV2Suggestions(c: AppContext, params: PaginatedListParams, s const events = await store.query(filters, { signal }); const [userEvents, followsEvent, mutesEvent, trendingEvent] = [ - events.filter((event) => matchFilter({ kinds: [30382], authors: [Conf.pubkey], '#n': ['suggest'] }, event)), + events.filter((event) => matchFilter({ kinds: [30382], authors: [Conf.pubkey], '#n': ['suggested'] }, event)), pubkey ? events.find((event) => matchFilter({ kinds: [3], authors: [pubkey] }, event)) : undefined, pubkey ? events.find((event) => matchFilter({ kinds: [10000], authors: [pubkey] }, event)) : undefined, events.find((event) => diff --git a/src/views/mastodon/accounts.ts b/src/views/mastodon/accounts.ts index 9f2f052..99f69f0 100644 --- a/src/views/mastodon/accounts.ts +++ b/src/views/mastodon/accounts.ts @@ -79,7 +79,7 @@ async function renderAccount( pleroma: { is_admin: names.has('admin'), is_moderator: names.has('admin') || names.has('moderator'), - is_suggested: names.has('suggest'), + is_suggested: names.has('suggested'), is_local: parsed05?.domain === Conf.url.host, settings_store: undefined as unknown, tags: [...getTagSet(event.user?.tags ?? [], 't')],