mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Cleanup model types
This commit is contained in:
parent
96ca24f00e
commit
0283eaac2a
50 changed files with 696 additions and 349 deletions
|
@ -7,7 +7,7 @@ import { getOrCreateActorAndServerAndModel } from './actor'
|
|||
import { getOrCreateVideoAndAccountAndChannel } from './videos'
|
||||
import * as Bluebird from 'bluebird'
|
||||
import { checkUrlsSameHost } from '../../helpers/activitypub'
|
||||
import { MCommentOwner, MCommentOwnerVideo, MVideoAccountAllFiles } from '../../typings/models/video'
|
||||
import { MCommentOwner, MCommentOwnerVideo, MVideoAccountLightBlacklistAllFiles } from '../../typings/models/video'
|
||||
|
||||
type ResolveThreadParams = {
|
||||
url: string,
|
||||
|
@ -15,7 +15,7 @@ type ResolveThreadParams = {
|
|||
isVideo?: boolean,
|
||||
commentCreated?: boolean
|
||||
}
|
||||
type ResolveThreadResult = Promise<{ video: MVideoAccountAllFiles, comment: MCommentOwnerVideo, commentCreated: boolean }>
|
||||
type ResolveThreadResult = Promise<{ video: MVideoAccountLightBlacklistAllFiles, comment: MCommentOwnerVideo, commentCreated: boolean }>
|
||||
|
||||
async function addVideoComments (commentUrls: string[]) {
|
||||
return Bluebird.map(commentUrls, commentUrl => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue