mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Add ability to limit videos history size
This commit is contained in:
parent
76062d9f96
commit
8f0bc73d7d
14 changed files with 116 additions and 17 deletions
|
@ -48,7 +48,7 @@ async function removeUserHistory (req: express.Request, res: express.Response) {
|
|||
const beforeDate = req.body.beforeDate || null
|
||||
|
||||
await sequelizeTypescript.transaction(t => {
|
||||
return UserVideoHistoryModel.removeHistoryBefore(user, beforeDate, t)
|
||||
return UserVideoHistoryModel.removeUserHistoryBefore(user, beforeDate, t)
|
||||
})
|
||||
|
||||
// Do not send the delete to other instances, we delete OUR copy of this video abuse
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue