mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Fix emptying video tags
This commit is contained in:
parent
1ef447bd83
commit
6c9c3b7b14
3 changed files with 15 additions and 18 deletions
|
@ -347,12 +347,13 @@ async function updateVideo (req: express.Request, res: express.Response) {
|
|||
if (previewModel) await videoInstanceUpdated.addAndSaveThumbnail(previewModel, t)
|
||||
|
||||
// Video tags update?
|
||||
await setVideoTags({
|
||||
video: videoInstanceUpdated,
|
||||
tags: videoInfoToUpdate.tags,
|
||||
transaction: t,
|
||||
defaultValue: videoInstanceUpdated.Tags
|
||||
})
|
||||
if (videoInfoToUpdate.tags !== undefined) {
|
||||
await setVideoTags({
|
||||
video: videoInstanceUpdated,
|
||||
tags: videoInfoToUpdate.tags,
|
||||
transaction: t
|
||||
})
|
||||
}
|
||||
|
||||
// Video channel update?
|
||||
if (res.locals.videoChannel && videoInstanceUpdated.channelId !== res.locals.videoChannel.id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue