+
-
+
@@ -30,7 +30,9 @@ SPDX-License-Identifier: AGPL-3.0-only
import {toRefs, Ref, ref, computed, watch} from 'vue';
import XButton from '@/components/MkSwitch.button.vue';
import {defaultStore} from "@/store.js";
-let gamingType = computed(defaultStore.makeGetterSetter('gamingType'));
+const gamingType = computed(defaultStore.makeGetterSetter('gamingType'));
+
+console.log(gamingType.value)
const props = defineProps<{
modelValue: boolean | Ref;
diff --git a/packages/frontend/src/components/MkTimeline.vue b/packages/frontend/src/components/MkTimeline.vue
index e45cf2f34f..34089096d9 100644
--- a/packages/frontend/src/components/MkTimeline.vue
+++ b/packages/frontend/src/components/MkTimeline.vue
@@ -107,12 +107,6 @@ function connectChannel() {
withFiles: props.onlyFiles ? true : undefined,
});
} else if (props.src === 'media') {
- endpoint = 'notes/hybrid-timeline';
- query = {
- withFiles: true,
- withRenotes: props.withRenotes,
- withReplies: props.withReplies,
- };
connection = stream.useChannel('hybridTimeline', {
withFiles: true,
withRenotes: props.withRenotes,
@@ -198,6 +192,13 @@ function updatePaginationQuery() {
withRenotes: props.withRenotes,
withFiles: props.onlyFiles ? true : undefined,
};
+ }else if(props.src === 'media'){
+ endpoint = 'notes/hybrid-timeline';
+ query = {
+ withFiles: true,
+ withRenotes: props.withRenotes,
+ withReplies: props.withReplies,
+ };
} else if (props.src === 'mentions') {
endpoint = 'notes/mentions';
query = null;