~ knotless Search/
↑↓ move↵ open⇧↵ all results

grain.social/grain

photography-focused photo sharing platform

grain.social
1 collaborator
0
2
8 lines · 398 B Raw History
import { defineQuery } from "$hatk";
import { provisioningHost } from "../helpers/groupHost.ts";

/** Where this Grain starts groups, for the form that names one. */
export default defineQuery("social.grain.unspecced.getGroupHost", async (ctx) => {
  const host = await provisioningHost().catch(() => undefined);
  return ctx.ok(host ? { url: host.url, handleDomain: host.handleDomain } : {});
});