Display all user history
Not limited to instance federation bubble
This commit is contained in:
parent
3318147300
commit
ac75f640fe
|
@ -57,19 +57,14 @@ export class UserVideoHistoryModel extends Model<Partial<AttributesOnly<UserVide
|
||||||
})
|
})
|
||||||
User: UserModel
|
User: UserModel
|
||||||
|
|
||||||
static async listForApi (user: MUserAccountId, start: number, count: number, search?: string) {
|
static listForApi (user: MUserAccountId, start: number, count: number, search?: string) {
|
||||||
const serverActor = await getServerActor()
|
|
||||||
|
|
||||||
return VideoModel.listForApi({
|
return VideoModel.listForApi({
|
||||||
start,
|
start,
|
||||||
count,
|
count,
|
||||||
search,
|
search,
|
||||||
sort: '-"userVideoHistory"."updatedAt"',
|
sort: '-"userVideoHistory"."updatedAt"',
|
||||||
nsfw: null, // All
|
nsfw: null, // All
|
||||||
displayOnlyForFollower: {
|
displayOnlyForFollower: null,
|
||||||
actorId: serverActor.id,
|
|
||||||
orLocalVideos: true
|
|
||||||
},
|
|
||||||
user,
|
user,
|
||||||
historyOfUser: user
|
historyOfUser: user
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue