mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-07-07 20:44:34 +00:00
merge: fix: bubble timeline not being selectable when logged out (!950)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/950 Closes #1018 Approved-by: Hazelnoot <acomputerdog@gmail.com> Approved-by: dakkar <dakkar@thenautilus.net>
This commit is contained in:
commit
92382b2ed4
2 changed files with 5 additions and 5 deletions
4
locales/index.d.ts
vendored
4
locales/index.d.ts
vendored
|
@ -8551,7 +8551,7 @@ export interface Locale extends ILocale {
|
|||
*/
|
||||
"write:admin:nsfw-user": string;
|
||||
/**
|
||||
* Mark users an not NSFW
|
||||
* Mark users as not NSFW
|
||||
*/
|
||||
"write:admin:unnsfw-user": string;
|
||||
/**
|
||||
|
@ -10243,7 +10243,7 @@ export interface Locale extends ILocale {
|
|||
*/
|
||||
"setRemoteInstanceNSFW": string;
|
||||
/**
|
||||
* Set remote instance as NSFW
|
||||
* Unset remote instance as NSFW
|
||||
*/
|
||||
"unsetRemoteInstanceNSFW": string;
|
||||
/**
|
||||
|
|
|
@ -68,7 +68,7 @@ const rootEl = shallowRef<HTMLElement>();
|
|||
type TimelinePageSrc = BasicTimelineType | `list:${string}`;
|
||||
|
||||
const queue = ref(0);
|
||||
const srcWhenNotSignin = ref<'local' | 'global'>(isAvailableBasicTimeline('local') ? 'local' : 'global');
|
||||
const srcWhenNotSignin = ref<'local' | 'bubble' | 'global'>(isAvailableBasicTimeline('local') ? 'local' : 'global');
|
||||
const src = computed<TimelinePageSrc>({
|
||||
get: () => ($i ? defaultStore.reactiveState.tl.value.src : srcWhenNotSignin.value),
|
||||
set: (x) => saveSrc(x),
|
||||
|
@ -212,8 +212,8 @@ function saveSrc(newSrc: TimelinePageSrc): void {
|
|||
}
|
||||
|
||||
defaultStore.set('tl', out);
|
||||
if (['local', 'global'].includes(newSrc)) {
|
||||
srcWhenNotSignin.value = newSrc as 'local' | 'global';
|
||||
if (['local', 'bubble', 'global'].includes(newSrc)) {
|
||||
srcWhenNotSignin.value = newSrc as 'local' | 'bubble' | 'global';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue