1
0

add: auto uncollapse CW on all notes option

Closes transfem-org/Sharkey#191
This commit is contained in:
Mar0xy
2023-12-03 19:35:39 +01:00
parent aa4c3dfffe
commit 620be4a9e1
10 changed files with 17 additions and 9 deletions
+1 -1
View File
@@ -272,7 +272,7 @@ const renoteUrl = appearNote.renote ? appearNote.renote.url : null;
const renoteUri = appearNote.renote ? appearNote.renote.uri : null;
const isMyRenote = $i && ($i.id === note.userId);
const showContent = ref(false);
const showContent = ref(defaultStore.state.uncollapseCW);
const parsed = $computed(() => appearNote.text ? mfm.parse(appearNote.text) : null);
const urls = $computed(() => parsed ? extractUrlFromMfm(parsed).filter(u => u !== renoteUrl && u !== renoteUri) : null);
const animated = $computed(() => parsed ? checkAnimationFromMfm(parsed) : null);