fix: 🐛 timeline secured

This commit is contained in:
ThatOneCalculator 2022-08-09 16:22:55 -07:00
parent 7e9c16501e
commit dc00651c61
2 changed files with 4 additions and 4 deletions

View File

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

View File

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