adds feed

This commit is contained in:
Christian Beutel
2025-07-11 16:02:18 +02:00
parent 25bf00a38b
commit 237d12bfec
33 changed files with 967 additions and 119 deletions

View File

@@ -0,0 +1,21 @@
import type { Actor } from "./activitypub/actor";
import type { List } from "./list";
import type { SummitLog } from "./summit_log";
import type { Trail } from "./trail";
interface FeedItem {
id: string;
actor: string;
author: string;
item: string;
type: "trail" | "list" | "summit_log"
expand: {
actor?: Actor,
author?: Actor,
item: Trail | List
}
created: string;
}
export { type FeedItem }

View File

@@ -21,6 +21,7 @@ export class List {
author?: Actor;
}
created?: string;
author: string;
constructor(name: string, trails: Trail[], params?: { description?: string, public?: boolean, avatar?: string, author?: string }) {