Skip to content

Commit

Permalink
enhance(frontend): ノート詳細の前後の投稿にチャンネル投稿を含めるように
Browse files Browse the repository at this point in the history
  • Loading branch information
sakuhanight committed Dec 3, 2024
1 parent 65e8bea commit 526c1ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/frontend/src/pages/note.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ import MkClipPreview from '@/components/MkClipPreview.vue';
import { defaultStore } from '@/store.js';
import { pleaseLogin } from '@/scripts/please-login.js';
import { getServerContext } from '@/server-context.js';
import { $i } from '@/account.js';

const CTX_NOTE = getServerContext('note');

Expand All @@ -83,6 +84,8 @@ const prevUserPagination: Paging = {
params: computed(() => note.value ? ({
userId: note.value.userId,
untilId: note.value.id,
withChannelNotes: true,
includeSensitiveChannel: $i != null,
}) : undefined),
};

Expand All @@ -93,6 +96,8 @@ const nextUserPagination: Paging = {
params: computed(() => note.value ? ({
userId: note.value.userId,
sinceId: note.value.id,
withChannelNotes: true,
includeSensitiveChannel: $i != null,
}) : undefined),
};

Expand Down

0 comments on commit 526c1ad

Please sign in to comment.