feat: add pinned post functionality
This commit is contained in:
parent
9c554da2da
commit
d131026af9
31 changed files with 563 additions and 56 deletions
|
|
@ -332,6 +332,15 @@ export function createBookmarkDraftEvent(tags: string[][], content = ''): TDraft
|
|||
}
|
||||
}
|
||||
|
||||
export function createPinListDraftEvent(tags: string[][], content = ''): TDraftEvent {
|
||||
return {
|
||||
kind: kinds.Pinlist,
|
||||
content,
|
||||
tags,
|
||||
created_at: dayjs().unix()
|
||||
}
|
||||
}
|
||||
|
||||
export function createBlossomServerListDraftEvent(servers: string[]): TDraftEvent {
|
||||
return {
|
||||
kind: ExtendedKind.BLOSSOM_SERVER_LIST,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue