A simple AtProto app to read pet.mewsse.link records on my PDS.

Fix update + cleanup

Mewsse 3ac5195c 2bf01b11

Changed files
+4 -3
src
+2 -2
src/ingester.ts
···
import { decode } from '@atcute/cbor'
import { logger } from "./lib/logger.ts"
-
import type { CommitCreate } from "@skyware/jetstream"
-
interface RepoParams {
did: Did<"web"> | Did<"plc">,
since?: string
···
description: record.description ?? null,
image: findImage(did, pds, record),
alt: record.alt ?? null,
+
nsfw: +(record.nsfw || 0),
+
big: +(record.big || 0),
createdAt: record.createdAt
})
.where('rkey', '=', rev)
+2 -1
src/routes.ts
···
+
+
import { IncomingMessage, ServerResponse } from "node:http"
import { Router } from "./lib/router.ts"
import path from "node:path"
import { Eta } from "eta"
import type { Database } from './db.ts'
-
import { IncomingMessage, ServerResponse } from "node:http"
export const createRoutes = (router: Router, db: Database) => {
const eta = new Eta({ views: path.join(import.meta.dirname, "views") })