feat: add and close #194

This commit is contained in:
Xylight committed 2023-11-27 16:50:30 -08:00
1 parent 0d7b9a2064
commit 0e29987d7f
3 files changed
+13 -2

No files matched your search

@@ -186,7 +186,11 @@
<MenuButton
on:click={() => {
setSessionStorage('postDraft', {
body: `cross-posted from: ${post.post.ap_id}\n${
body: `${
$userSettings.crosspostOriginalLink
? `cross-posted from: ${post.post.ap_id}`
: ``
}\n${
post.post.body
? '>' + post.post.body.split('\n').join('\n> ')
: ''
+3 -1
View File
@@ -74,6 +74,7 @@ interface Settings {
separateVotes: boolean
openLinksInNewTab: boolean
crosspostOriginalLink: boolean
}
export const defaultSettings: Settings = {
@@ -122,7 +123,8 @@ export const defaultSettings: Settings = {
newWidth: true,
markPostsAsRead: true,
separateVotes: false,
openLinksInNewTab: false
openLinksInNewTab: false,
crosspostOriginalLink: true
}
export const userSettings = writable(defaultSettings)