Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Display all user history

Chocobozzzac75f640fefb
diff --git a/server/models/user/user-video-history.ts b/server/models/user/user-video-history.ts
index 6d9f2e03f7..8aff7b10c5 100644
--- a/server/models/user/user-video-history.ts
+++ b/server/models/user/user-video-history.ts
@@ -57,19 +57,14 @@ export class UserVideoHistoryModel extends Model<Partial<AttributesOnly<UserVide
})
User: UserModel
- static async listForApi (user: MUserAccountId, start: number, count: number, search?: string) {
- const serverActor = await getServerActor()
-
+ static listForApi (user: MUserAccountId, start: number, count: number, search?: string) {
return VideoModel.listForApi({
start,
count,
search,
sort: '-"userVideoHistory"."updatedAt"',
nsfw: null, // All
- displayOnlyForFollower: {
- actorId: serverActor.id,
- orLocalVideos: true
- },
+ displayOnlyForFollower: null,
user,
historyOfUser: user
})