feat: basic command prompt support

This commit is contained in:
Xylight committed 2024-07-19 15:11:37 -07:00
1 parent 0179859427
commit 59bb6dde89
4 files changed
+181 -1

No files matched your search

+3 -1
View File
@@ -12,7 +12,7 @@ import type {
PrivateMessageView,
Community,
} from 'lemmy-js-client'
import { get } from 'svelte/store'
import { get, writable } from 'svelte/store'
export type Result =
| PostView
@@ -82,6 +82,8 @@ export interface ResumableItem {
}
}
export let resumables = writable<ResumableItem[]>([])
export function addFavorite(item: Community, add: boolean = true) {
const pd = get(profileData)
const p = pd.profiles.find((p) => p.id == get(profile)?.id)