forked from mirrors/iceshrimp
Laura Hausmann
03cdf4ec4a
Currently you have to configure these in the web ui, but this will eventually be implemented as well
9 lines
268 B
TypeScript
9 lines
268 B
TypeScript
import { MastoContext } from "@/server/api/mastodon/index.js";
|
|
|
|
export function filterContext(context: string) {
|
|
return async function filterContext(ctx: MastoContext, next: () => Promise<any>) {
|
|
ctx.filterContext = context;
|
|
await next();
|
|
};
|
|
}
|