Verified Commit ac75f640 authored by Chocobozzz's avatar Chocobozzz
Browse files

Display all user history

Not limited to instance federation bubble
parent 33181473
......@@ -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
})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment