瀏覽代碼

Display all user history

Not limited to instance federation bubble
tags/v4.1.0-rc.1
Chocobozzz 4 月之前
父節點
當前提交
ac75f640fe
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 583A612D890159BE
共有 1 個文件被更改,包括 2 次插入7 次删除
  1. +2
    -7
      server/models/user/user-video-history.ts

+ 2
- 7
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
})


Loading…
取消
儲存