enhance(backend): users/notesでチャンネル投稿を含めるオプション

Resolve #11965
This commit is contained in:
syuilo 2023-10-05 09:48:45 +09:00
parent d2bb35bcf3
commit 5b00fa6f82
4 changed files with 31 additions and 1 deletions

View file

@ -806,6 +806,12 @@ export class NoteCreateService implements OnApplicationShutdown {
const redisPipeline = this.redisForTimelines.pipeline();
if (note.channelId) {
redisPipeline.xadd(
`userTimelineWithChannel:${user.id}`,
'MAXLEN', '~', note.userHost == null ? meta.perLocalUserUserTimelineCacheMax.toString() : meta.perRemoteUserUserTimelineCacheMax.toString(),
'*',
'note', note.id);
const channelFollowings = await this.channelFollowingsRepository.find({
where: {
followeeId: note.channelId,