Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.

Commit 51e9810

Browse files
committed
Revert "Feat: ホームタイムラインとローカルくっつけたみたいなTLを実装 (#83)"
This reverts commit c497f6f
1 parent d57f0c3 commit 51e9810

12 files changed

Lines changed: 17 additions & 410 deletions

File tree

packages/backend/src/core/FanoutTimelineService.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,12 @@ export type FanoutTimelineName = (
1313
// home timeline
1414
| `homeTimeline:${string}`
1515
| `homeTimelineWithFiles:${string}` // only notes with files are included
16-
1716
// local timeline
1817
| 'localTimeline' // replies are not included
1918
| 'localTimelineWithFiles' // only non-reply notes with files are included
2019
| 'localTimelineWithReplies' // only replies are included
2120
| `localTimelineWithReplyTo:${string}` // Only replies to specific local user are included. Parameter is reply user id.
2221

23-
// local home timeline
24-
| `localHomeTimeline:${string}`
25-
| `localHomeTimelineWithFiles:${string}` // only notes with files are included
26-
2722
// antenna
2823
| `antennaTimeline:${string}`
2924

@@ -42,9 +37,9 @@ export type FanoutTimelineName = (
4237

4338
// role timelines
4439
| `roleTimeline:${string}` // any notes are included
40+
);
4541

4642
| `remoteLocalTimeline:${string}`
47-
);
4843

4944
@Injectable()
5045
export class FanoutTimelineService {

packages/backend/src/core/NoteCreateService.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -861,11 +861,8 @@ export class NoteCreateService implements OnApplicationShutdown {
861861

862862
for (const channelFollowing of channelFollowings) {
863863
this.fanoutTimelineService.push(`homeTimeline:${channelFollowing.followerId}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
864-
this.fanoutTimelineService.push(`localHomeTimeline:${channelFollowing.followerId}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
865-
866864
if (note.fileIds.length > 0) {
867865
this.fanoutTimelineService.push(`homeTimelineWithFiles:${channelFollowing.followerId}`, note.id, this.meta.perUserHomeTimelineCacheMax / 2, r);
868-
this.fanoutTimelineService.push(`localHomeTimelineWithFiles:${channelFollowing.followerId}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
869866
}
870867
}
871868
} else {
@@ -904,10 +901,8 @@ export class NoteCreateService implements OnApplicationShutdown {
904901
}
905902

906903
this.fanoutTimelineService.push(`homeTimeline:${following.followerId}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
907-
if (user.host === null) this.fanoutTimelineService.push(`localHomeTimeline:${following.followerId}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
908904
if (note.fileIds.length > 0) {
909905
this.fanoutTimelineService.push(`homeTimelineWithFiles:${following.followerId}`, note.id, this.meta.perUserHomeTimelineCacheMax / 2, r);
910-
if (user.host === null) this.fanoutTimelineService.push(`localHomeTimelineWithFiles:${following.followerId}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
911906
}
912907
}
913908

@@ -934,10 +929,8 @@ export class NoteCreateService implements OnApplicationShutdown {
934929
if (note.userHost == null) {
935930
if (note.visibility !== 'specified' || !note.visibleUserIds.some(v => v === user.id)) {
936931
this.fanoutTimelineService.push(`homeTimeline:${user.id}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
937-
this.fanoutTimelineService.push(`localHomeTimeline:${user.id}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
938932
if (note.fileIds.length > 0) {
939933
this.fanoutTimelineService.push(`homeTimelineWithFiles:${user.id}`, note.id, this.meta.perUserHomeTimelineCacheMax / 2, r);
940-
this.fanoutTimelineService.push(`localHomeTimelineWithFiles:${user.id}`, note.id, this.meta.perUserHomeTimelineCacheMax, r);
941934
}
942935
}
943936
}
@@ -960,13 +953,10 @@ export class NoteCreateService implements OnApplicationShutdown {
960953

961954
if (note.visibility === 'public' && note.userHost == null) {
962955
this.fanoutTimelineService.push('localTimeline', note.id, 1000, r);
963-
this.fanoutTimelineService.push(`localHomeTimeline:${user.id}`, note.id, 1000, r);
964956
if (note.fileIds.length > 0) {
965957
this.fanoutTimelineService.push('localTimelineWithFiles', note.id, 500, r);
966-
this.fanoutTimelineService.push(`localHomeTimelineWithFiles:${user.id}`, note.id, 1000, r);
967958
}
968959
}
969-
970960
if (note.visibility === 'public' && note.userHost !== null) {
971961
this.fanoutTimelineService.push(`remoteLocalTimeline:${note.userHost}`, note.id, 1000, r);
972962
}

packages/backend/src/server/ServerModule.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import { DriveChannelService } from './api/stream/channels/drive.js';
3838
import { GlobalTimelineChannelService } from './api/stream/channels/global-timeline.js';
3939
import { HashtagChannelService } from './api/stream/channels/hashtag.js';
4040
import { HomeTimelineChannelService } from './api/stream/channels/home-timeline.js';
41-
import { HomeLocalTimelineChannelService } from './api/stream/channels/home-local-timeline.js';
4241
import { HybridTimelineChannelService } from './api/stream/channels/hybrid-timeline.js';
4342
import { LocalTimelineChannelService } from './api/stream/channels/local-timeline.js';
4443
import { QueueStatsChannelService } from './api/stream/channels/queue-stats.js';
@@ -88,7 +87,6 @@ import { SigninWithPasskeyApiService } from './api/SigninWithPasskeyApiService.j
8887
ReversiChannelService,
8988
ReversiGameChannelService,
9089
HomeTimelineChannelService,
91-
HomeLocalTimelineChannelService,
9290
HybridTimelineChannelService,
9391
LocalTimelineChannelService,
9492
QueueStatsChannelService,

packages/backend/src/server/api/endpoint-list.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,5 +415,4 @@ export * as 'admin/inbox-rule/set' from './endpoints/admin/inbox-rule/set.js';
415415
export * as 'admin/inbox-rule/delete' from './endpoints/admin/inbox-rule/delete.js';
416416
export * as 'admin/inbox-rule/list' from './endpoints/admin/inbox-rule/list.js';
417417
export * as 'users/lists/list-favorite' from './endpoints/users/lists/list-favorite.js';
418-
export * as 'notes/home-local-timeline' from './endpoints/notes/home-local-timeline.js'
419418
export * as 'point/send' from './endpoints/point/send.js';

packages/backend/src/server/api/endpoints/notes/home-local-timeline.ts

Lines changed: 0 additions & 247 deletions
This file was deleted.

packages/backend/src/server/api/stream/ChannelsService.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { HashtagChannelService } from './channels/hashtag.js';
2121
import { RoleTimelineChannelService } from './channels/role-timeline.js';
2222
import { ReversiChannelService } from './channels/reversi.js';
2323
import { ReversiGameChannelService } from './channels/reversi-game.js';
24-
import { HomeLocalTimelineChannelService } from './channels/home-local-timeline.js';
2524
import { type MiChannelService } from './channel.js';
2625

2726
@Injectable()
@@ -43,7 +42,6 @@ export class ChannelsService {
4342
private adminChannelService: AdminChannelService,
4443
private reversiChannelService: ReversiChannelService,
4544
private reversiGameChannelService: ReversiGameChannelService,
46-
private homeLocalTimelineChannel: HomeLocalTimelineChannelService,
4745
) {
4846
}
4947

@@ -66,7 +64,6 @@ export class ChannelsService {
6664
case 'admin': return this.adminChannelService;
6765
case 'reversi': return this.reversiChannelService;
6866
case 'reversiGame': return this.reversiGameChannelService;
69-
case 'homeLocalTimeline': return this.homeLocalTimelineChannel;
7067

7168
default:
7269
throw new Error(`no such channel: ${name}`);

0 commit comments

Comments
 (0)