fix: 🐛 timeline secured

This commit is contained in:
ThatOneCalculator 2022-08-09 16:22:55 -07:00
parent 93a16a4481
commit 14ed30b233
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "misskey", "name": "misskey",
"version": "12.118.1-calc.rc.9.5", "version": "12.118.1-calc.rc.9.6",
"codename": "aqua", "codename": "aqua",
"repository": { "repository": {
"type": "git", "type": "git",

View file

@ -48,10 +48,10 @@ const rootEl = $ref<HTMLElement>();
let queue = $ref(0); let queue = $ref(0);
let srcWhenNotSignin = $ref(isLocalTimelineAvailable ? 'local' : 'global'); let srcWhenNotSignin = $ref(isLocalTimelineAvailable ? 'local' : 'global');
let src = $computed({ get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin), set: (x) => saveSrc(x) }); if (!enableGuestTimeline) {
if (!enableGuestTimeline && !$i) { srcWhenNotSignin = '';
src = {};
} }
const src = $computed({ get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin), set: (x) => saveSrc(x) });
watch ($$(src), () => queue = 0); watch ($$(src), () => queue = 0);