adds feed
This commit is contained in:
21
web/src/lib/models/feed.ts
Normal file
21
web/src/lib/models/feed.ts
Normal 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 }
|
||||
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user