[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix preferences thing (#25)

authored by

Davi Rodrigues and committed by
GitHub
3648255a 24a7b52e

+1 -2
+1 -2
services/appview/api/so/sprk/actor/putPreferences.ts
··· 1 1 import { Server } from "../../../../lexicon/index.ts"; 2 2 import { AppContext } from "../../../../main.ts"; 3 - import * as SoSprkActorPutPreferences from "../../../../lexicon/types/so/sprk/actor/putPreferences.ts"; 4 3 5 4 export default function (server: Server, ctx: AppContext) { 6 5 server.so.sprk.actor.putPreferences({ 7 6 auth: ctx.authVerifier.standard, 8 7 handler: async ({ input, auth }) => { 9 8 const userDid = auth.credentials.iss; 10 - const body = input as SoSprkActorPutPreferences.InputSchema; 9 + const body = input.body; 11 10 12 11 if (body.followMode && !["bsky", "sprk"].includes(body.followMode)) { 13 12 throw new Error(