mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix last commit
This commit is contained in:
@@ -38,7 +38,7 @@ async function federateVideoIfNeeded (video: VideoModel, isNewVideo: boolean, tr
|
||||
}) as VideoCaptionModel[]
|
||||
}
|
||||
|
||||
if (isNewVideo === true) {
|
||||
if (isNewVideo) {
|
||||
// Now we'll add the video's meta data to our followers
|
||||
await sendCreateVideo(video, transaction)
|
||||
await shareVideoByServerAndChannel(video, transaction)
|
||||
@@ -153,9 +153,7 @@ function videoFileActivityUrlToDBAttributes (videoCreated: VideoModel, videoObje
|
||||
if (!magnet) throw new Error('Cannot find associated magnet uri for file ' + fileUrl.href)
|
||||
|
||||
const parsed = magnetUtil.decode(magnet.href)
|
||||
if (!parsed ||
|
||||
(parsed.infoHash &&
|
||||
(isVideoFileInfoHashValid(parsed.infoHash) === false))) {
|
||||
if (!parsed || isVideoFileInfoHashValid(parsed.infoHash) === false) {
|
||||
throw new Error('Cannot parse magnet URI ' + magnet.href)
|
||||
}
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import { CONFIG, USER_PASSWORD_RESET_LIFETIME, VIDEO_VIEW_LIFETIME } from '../in
|
||||
|
||||
type CachedRoute = {
|
||||
body: string,
|
||||
contentType: string
|
||||
statusCode: string
|
||||
contentType?: string
|
||||
statusCode?: string
|
||||
}
|
||||
|
||||
class Redis {
|
||||
|
||||
Reference in New Issue
Block a user