Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
1673beta committed Mar 20, 2024
1 parent 19f45a0 commit d3db5d5
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/frontend/src/components/MkTimeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import { vibrate } from '@/scripts/vibrate.js';
import { globalEvents } from '@/events.js';

const props = withDefaults(defineProps<{
src: 'home' | 'local' | 'social' | 'global' | 'mentions' | 'directs' | 'list' | 'antenna' | 'channel' | 'role';
src: 'home' | 'local' | 'social' | 'global' | 'media' | 'mentions' | 'directs' | 'list' | 'antenna' | 'channel' | 'role';
list?: string;
antenna?: string;
channel?: string;
Expand Down Expand Up @@ -124,11 +124,9 @@ function connectChannel() {
withReplies: props.withReplies,
withFiles: true,
withCats: props.onlyCats,
}
},
);
}

else if (props.src === 'social') {
} else if (props.src === 'social') {
connection = stream.useChannel('hybridTimeline', {
withRenotes: props.withRenotes,
withReplies: props.withReplies,
Expand Down Expand Up @@ -211,9 +209,7 @@ function updatePaginationQuery() {
withFiles: true,
withCats: props.onlyCats,
};
}

else if (props.src === 'social') {
} else if (props.src === 'social') {
endpoint = 'notes/hybrid-timeline';
query = {
withRenotes: props.withRenotes,
Expand Down

0 comments on commit d3db5d5

Please sign in to comment.