Display all user history

Not limited to instance federation bubble
pull/4711/head
Chocobozzz 2022-01-10 16:40:56 +01:00
parent 3318147300
commit ac75f640fe
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 7 deletions

View File

@ -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
})