mirror of https://github.com/Chocobozzz/PeerTube
Add video channel and video thumbnail, rework video appearance in row
parent
9b4241e33b
commit
86521a67b2
|
@ -23,7 +23,12 @@
|
||||||
|
|
||||||
<ng-template pTemplate="body" let-serverBlock>
|
<ng-template pTemplate="body" let-serverBlock>
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ serverBlock.blockedServer.host }}</td>
|
<td>
|
||||||
|
<a [href]="'https://' + serverBlock.blockedServer.host" i18n-title title="Open instance in a new tab" target="_blank" rel="noopener noreferrer">
|
||||||
|
{{ serverBlock.blockedServer.host }}
|
||||||
|
<span class="glyphicon glyphicon-new-window"></span>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
<td>{{ serverBlock.createdAt }}</td>
|
<td>{{ serverBlock.createdAt }}</td>
|
||||||
<td class="action-cell">
|
<td class="action-cell">
|
||||||
<button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button>
|
<button class="unblock-button" (click)="unblockServer(serverBlock)" i18n>Unmute</button>
|
||||||
|
|
|
@ -1,6 +1,20 @@
|
||||||
@import '_variables';
|
@import '_variables';
|
||||||
@import '_mixins';
|
@import '_mixins';
|
||||||
|
|
||||||
|
a {
|
||||||
|
@include disable-default-a-behaviour;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
&, &:hover {
|
||||||
|
color: var(--mainForegroundColor);
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
font-size: 80%;
|
||||||
|
color: var(--inputPlaceholderColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.unblock-button {
|
.unblock-button {
|
||||||
@include peertube-button;
|
@include peertube-button;
|
||||||
@include grey-button;
|
@include grey-button;
|
||||||
|
|
|
@ -29,10 +29,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.glyphicon-trash {
|
|
||||||
font-size: 80%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screenratio {
|
.screenratio {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -47,6 +43,7 @@
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
color: var(--inputPlaceholderColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
::ng-deep iframe {
|
::ng-deep iframe {
|
||||||
|
|
|
@ -41,9 +41,22 @@
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<span *ngIf="videoAbuse.video.deleted" i18n-title title="Video was deleted" class="glyphicon glyphicon-trash"></span>
|
<a [href]="getVideoUrl(videoAbuse)" class="video-abuse-video-link" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer">
|
||||||
<a [href]="getVideoUrl(videoAbuse)" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer">
|
<div class="video-abuse-video">
|
||||||
{{ videoAbuse.video.name }}
|
<div class="video-abuse-video-image">
|
||||||
|
<img *ngIf="!videoAbuse.video.deleted" [src]="videoAbuse.video.thumbnailPath">
|
||||||
|
<span *ngIf="videoAbuse.video.deleted" i18n>Deleted</span>
|
||||||
|
</div>
|
||||||
|
<div class="video-abuse-video-text">
|
||||||
|
<div>
|
||||||
|
{{ videoAbuse.video.name }}
|
||||||
|
<span *ngIf="!videoAbuse.video.deleted && !videoAbuse.video.blacklisted" class="glyphicon glyphicon-new-window"></span>
|
||||||
|
<span *ngIf="videoAbuse.video.deleted" i18n-title title="Video was deleted" class="glyphicon glyphicon-trash"></span>
|
||||||
|
<span *ngIf="videoAbuse.video.blacklisted" i18n-title title="Video was blacklisted" class="glyphicon glyphicon-ban-circle"></span>
|
||||||
|
</div>
|
||||||
|
<div class="text-muted">by {{ videoAbuse.video.channel?.displayName }} on {{ videoAbuse.video.channel?.host }} </div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
@ -78,10 +91,10 @@
|
||||||
|
|
||||||
<div class="col-4">
|
<div class="col-4">
|
||||||
<div class="screenratio">
|
<div class="screenratio">
|
||||||
<div *ngIf="videoAbuse.video.deleted">
|
<div *ngIf="videoAbuse.video.deleted || videoAbuse.video.blacklisted">
|
||||||
<span i18n>The video was {{ videoAbuse.video.deleted ? 'deleted' : 'blacklisted' }}</span>
|
<span i18n>The video was {{ videoAbuse.video.deleted ? 'deleted' : 'blacklisted' }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div *ngIf="!videoAbuse.video.deleted" [innerHTML]="videoAbuse.embedHtml"></div>
|
<div *ngIf="!videoAbuse.video.deleted && !videoAbuse.video.blacklisted" [innerHTML]="videoAbuse.embedHtml"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -0,0 +1,57 @@
|
||||||
|
@import 'mixins';
|
||||||
|
@import 'miniature';
|
||||||
|
|
||||||
|
.video-abuse-video-link {
|
||||||
|
@include disable-outline;
|
||||||
|
position: relative;
|
||||||
|
top: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-abuse-video {
|
||||||
|
display: inline-flex;
|
||||||
|
|
||||||
|
.video-abuse-video-image {
|
||||||
|
@include miniature-thumbnail;
|
||||||
|
|
||||||
|
$image-height: 45px;
|
||||||
|
|
||||||
|
height: $image-height;
|
||||||
|
width: #{(16/9) * $image-height};
|
||||||
|
margin-right: 0.5rem;
|
||||||
|
border-radius: 2px;
|
||||||
|
border: none;
|
||||||
|
background: transparent;
|
||||||
|
display: inline-flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: var(--inputPlaceholderColor);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.video-abuse-video-text {
|
||||||
|
display: inline-flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 90%;
|
||||||
|
color: var(--mainForegroundColor);
|
||||||
|
line-height: 1rem;
|
||||||
|
|
||||||
|
div .glyphicon {
|
||||||
|
font-size: 80%;
|
||||||
|
color: gray;
|
||||||
|
margin-left: 0.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
div + div {
|
||||||
|
font-size: 80%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -20,14 +20,14 @@ import { VideoService } from '@app/shared/video/video.service'
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'my-video-abuse-list',
|
selector: 'my-video-abuse-list',
|
||||||
templateUrl: './video-abuse-list.component.html',
|
templateUrl: './video-abuse-list.component.html',
|
||||||
styleUrls: [ '../moderation.component.scss']
|
styleUrls: [ '../moderation.component.scss', './video-abuse-list.component.scss' ]
|
||||||
})
|
})
|
||||||
export class VideoAbuseListComponent extends RestTable implements OnInit {
|
export class VideoAbuseListComponent extends RestTable implements OnInit {
|
||||||
@ViewChild('moderationCommentModal', { static: true }) moderationCommentModal: ModerationCommentModalComponent
|
@ViewChild('moderationCommentModal', { static: true }) moderationCommentModal: ModerationCommentModalComponent
|
||||||
|
|
||||||
videoAbuses: (VideoAbuse & { moderationCommentHtml?: string, reasonHtml?: string })[] = []
|
videoAbuses: (VideoAbuse & { moderationCommentHtml?: string, reasonHtml?: string })[] = []
|
||||||
totalRecords = 0
|
totalRecords = 0
|
||||||
rowsPerPageOptions = [ 20, 50, 100 ]
|
rowsPerPageOptions = [ 20, 50, 100 ]
|
||||||
rowsPerPage = this.rowsPerPageOptions[0]
|
rowsPerPage = this.rowsPerPageOptions[0]
|
||||||
sort: SortMeta = { field: 'createdAt', order: 1 }
|
sort: SortMeta = { field: 'createdAt', order: 1 }
|
||||||
pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
|
pagination: RestPagination = { count: this.rowsPerPage, start: 0 }
|
||||||
|
@ -86,7 +86,7 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18n('Blacklist video'),
|
label: this.i18n('Blacklist video'),
|
||||||
isDisplayed: videoAbuse => !videoAbuse.video.deleted,
|
isDisplayed: videoAbuse => !videoAbuse.video.deleted && !videoAbuse.video.blacklisted,
|
||||||
handler: videoAbuse => {
|
handler: videoAbuse => {
|
||||||
this.videoBlacklistService.blacklistVideo(videoAbuse.video.id, undefined, true)
|
this.videoBlacklistService.blacklistVideo(videoAbuse.video.id, undefined, true)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
|
@ -100,11 +100,30 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: this.i18n('Unblacklist video'),
|
||||||
|
isDisplayed: videoAbuse => !videoAbuse.video.deleted && videoAbuse.video.blacklisted,
|
||||||
|
handler: videoAbuse => {
|
||||||
|
this.videoBlacklistService.removeVideoFromBlacklist(videoAbuse.video.id)
|
||||||
|
.subscribe(
|
||||||
|
() => {
|
||||||
|
this.notifier.success(this.i18n('Video unblacklisted.'))
|
||||||
|
|
||||||
|
this.updateVideoAbuseState(videoAbuse, VideoAbuseState.ACCEPTED)
|
||||||
|
},
|
||||||
|
|
||||||
|
err => this.notifier.error(err.message)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: this.i18n('Delete video'),
|
label: this.i18n('Delete video'),
|
||||||
isDisplayed: videoAbuse => !videoAbuse.video.deleted,
|
isDisplayed: videoAbuse => !videoAbuse.video.deleted,
|
||||||
handler: async videoAbuse => {
|
handler: async videoAbuse => {
|
||||||
const res = await this.confirmService.confirm(this.i18n('Do you really want to delete this video?'), this.i18n('Delete'))
|
const res = await this.confirmService.confirm(
|
||||||
|
this.i18n('Do you really want to delete this video?'),
|
||||||
|
this.i18n('Delete')
|
||||||
|
)
|
||||||
if (res === false) return
|
if (res === false) return
|
||||||
|
|
||||||
this.videoService.removeVideo(videoAbuse.video.id)
|
this.videoService.removeVideo(videoAbuse.video.id)
|
||||||
|
@ -126,18 +145,36 @@ export class VideoAbuseListComponent extends RestTable implements OnInit {
|
||||||
isHeader: true
|
isHeader: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: this.i18n('Mute reporter'),
|
label: this.i18n('Mute reporter'),
|
||||||
handler: async videoAbuse => {
|
handler: async videoAbuse => {
|
||||||
const account = videoAbuse.reporterAccount as Account
|
const account = videoAbuse.reporterAccount as Account
|
||||||
|
|
||||||
this.blocklistService.blockAccountByInstance(account)
|
this.blocklistService.blockAccountByInstance(account)
|
||||||
.subscribe(
|
.subscribe(
|
||||||
() => {
|
() => {
|
||||||
this.notifier.success(this.i18n('Account {{nameWithHost}} muted by the instance.', { nameWithHost: account.nameWithHost }))
|
this.notifier.success(
|
||||||
|
this.i18n('Account {{nameWithHost}} muted by the instance.', { nameWithHost: account.nameWithHost })
|
||||||
|
)
|
||||||
|
|
||||||
account.mutedByInstance = true
|
account.mutedByInstance = true
|
||||||
},
|
},
|
||||||
|
|
||||||
|
err => this.notifier.error(err.message)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: this.i18n('Mute server'),
|
||||||
|
isDisplayed: videoAbuse => !videoAbuse.reporterAccount.userId,
|
||||||
|
handler: async videoAbuse => {
|
||||||
|
this.blocklistService.blockServerByInstance(videoAbuse.reporterAccount.host)
|
||||||
|
.subscribe(
|
||||||
|
() => {
|
||||||
|
this.notifier.success(
|
||||||
|
this.i18n('Server {{host}} muted by the instance.', { host: videoAbuse.reporterAccount.host })
|
||||||
|
)
|
||||||
|
},
|
||||||
|
|
||||||
err => this.notifier.error(err.message)
|
err => this.notifier.error(err.message)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,7 +85,7 @@ export class UserUpdateComponent extends UserEdit implements OnInit, OnDestroy {
|
||||||
|
|
||||||
this.userService.updateUser(this.user.id, userUpdate).subscribe(
|
this.userService.updateUser(this.user.id, userUpdate).subscribe(
|
||||||
() => {
|
() => {
|
||||||
this.notifier.success(this.i18n('User {{user.username}} updated.', { username: this.user.username }))
|
this.notifier.success(this.i18n('User {{username}} updated.', { username: this.user.username }))
|
||||||
this.router.navigate([ '/admin/users/list' ])
|
this.router.navigate([ '/admin/users/list' ])
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -292,7 +292,7 @@ class Emailer {
|
||||||
const videoUrl = WEBSERVER.URL + videoAbuse.Video.getWatchStaticPath()
|
const videoUrl = WEBSERVER.URL + videoAbuse.Video.getWatchStaticPath()
|
||||||
|
|
||||||
const text = 'Hi,\n\n' +
|
const text = 'Hi,\n\n' +
|
||||||
`${WEBSERVER.HOST} received an abuse for the following video ${videoUrl}\n\n` +
|
`${WEBSERVER.HOST} received an abuse for the following video: ${videoUrl}\n\n` +
|
||||||
'Cheers,\n' +
|
'Cheers,\n' +
|
||||||
`${CONFIG.EMAIL.BODY.SIGNATURE}`
|
`${CONFIG.EMAIL.BODY.SIGNATURE}`
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
import { AllowNull, BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, Is, Model, Table, UpdatedAt } from 'sequelize-typescript'
|
import {
|
||||||
|
AllowNull, BelongsTo, Column, CreatedAt, DataType, Default, ForeignKey, Is, Model, Table, UpdatedAt, DefaultScope
|
||||||
|
} from 'sequelize-typescript'
|
||||||
import { VideoAbuseObject } from '../../../shared/models/activitypub/objects'
|
import { VideoAbuseObject } from '../../../shared/models/activitypub/objects'
|
||||||
import { VideoAbuse } from '../../../shared/models/videos'
|
import { VideoAbuse } from '../../../shared/models/videos'
|
||||||
import {
|
import {
|
||||||
|
@ -14,7 +16,40 @@ import { CONSTRAINTS_FIELDS, VIDEO_ABUSE_STATES } from '../../initializers/const
|
||||||
import { MUserAccountId, MVideoAbuse, MVideoAbuseFormattable, MVideoAbuseVideo } from '../../typings/models'
|
import { MUserAccountId, MVideoAbuse, MVideoAbuseFormattable, MVideoAbuseVideo } from '../../typings/models'
|
||||||
import * as Bluebird from 'bluebird'
|
import * as Bluebird from 'bluebird'
|
||||||
import { literal, Op } from 'sequelize'
|
import { literal, Op } from 'sequelize'
|
||||||
|
import { ThumbnailModel } from './thumbnail'
|
||||||
|
import { VideoChannelModel } from './video-channel'
|
||||||
|
import { ActorModel } from '../activitypub/actor'
|
||||||
|
import { VideoBlacklistModel } from './video-blacklist'
|
||||||
|
|
||||||
|
@DefaultScope(() => ({
|
||||||
|
include: [
|
||||||
|
{
|
||||||
|
model: AccountModel,
|
||||||
|
required: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
model: VideoModel,
|
||||||
|
required: false,
|
||||||
|
include: [
|
||||||
|
{
|
||||||
|
model: ThumbnailModel
|
||||||
|
},
|
||||||
|
{
|
||||||
|
model: VideoChannelModel.unscoped(),
|
||||||
|
include: [
|
||||||
|
{
|
||||||
|
model: ActorModel
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
attributes: [ 'id', 'reason', 'unfederated' ],
|
||||||
|
model: VideoBlacklistModel
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}))
|
||||||
@Table({
|
@Table({
|
||||||
tableName: 'videoAbuse',
|
tableName: 'videoAbuse',
|
||||||
indexes: [
|
indexes: [
|
||||||
|
@ -114,16 +149,8 @@ export class VideoAbuseModel extends Model<VideoAbuseModel> {
|
||||||
[Op.notIn]: literal('(' + buildBlockedAccountSQL(serverAccountId, userAccountId) + ')')
|
[Op.notIn]: literal('(' + buildBlockedAccountSQL(serverAccountId, userAccountId) + ')')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
include: [
|
col: 'VideoAbuseModel.id',
|
||||||
{
|
distinct: true
|
||||||
model: AccountModel,
|
|
||||||
required: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
model: VideoModel,
|
|
||||||
required: false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return VideoAbuseModel.findAndCountAll(query)
|
return VideoAbuseModel.findAndCountAll(query)
|
||||||
|
@ -151,7 +178,10 @@ export class VideoAbuseModel extends Model<VideoAbuseModel> {
|
||||||
uuid: video.uuid,
|
uuid: video.uuid,
|
||||||
name: video.name,
|
name: video.name,
|
||||||
nsfw: video.nsfw,
|
nsfw: video.nsfw,
|
||||||
deleted: !this.Video
|
deleted: !this.Video,
|
||||||
|
blacklisted: this.Video && this.Video.isBlacklisted(),
|
||||||
|
thumbnailPath: this.Video?.getMiniatureStaticPath(),
|
||||||
|
channel: this.Video?.VideoChannel.toFormattedSummaryJSON() || this.deletedVideo?.channel
|
||||||
},
|
},
|
||||||
createdAt: this.createdAt
|
createdAt: this.createdAt
|
||||||
}
|
}
|
||||||
|
|
|
@ -810,7 +810,7 @@ export class VideoModel extends Model<VideoModel> {
|
||||||
if (instance.VideoAbuses.length === 0) return undefined
|
if (instance.VideoAbuses.length === 0) return undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
const details = instance.toFormattedJSON()
|
const details = instance.toFormattedDetailsJSON()
|
||||||
|
|
||||||
for (const abuse of instance.VideoAbuses) {
|
for (const abuse of instance.VideoAbuses) {
|
||||||
tasks.push((_ => {
|
tasks.push((_ => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { VideoAbuseModel } from '../../../models/video/video-abuse'
|
import { VideoAbuseModel } from '../../../models/video/video-abuse'
|
||||||
import { PickWith } from '../../utils'
|
import { PickWith } from '../../utils'
|
||||||
import { MVideo } from './video'
|
import { MVideoAccountLightBlacklistAllFiles } from './video'
|
||||||
import { MAccountDefault, MAccountFormattable } from '../account'
|
import { MAccountDefault, MAccountFormattable } from '../account'
|
||||||
|
|
||||||
type Use<K extends keyof VideoAbuseModel, M> = PickWith<VideoAbuseModel, K, M>
|
type Use<K extends keyof VideoAbuseModel, M> = PickWith<VideoAbuseModel, K, M>
|
||||||
|
@ -16,12 +16,12 @@ export type MVideoAbuseId = Pick<VideoAbuseModel, 'id'>
|
||||||
export type MVideoAbuseVideo =
|
export type MVideoAbuseVideo =
|
||||||
MVideoAbuse &
|
MVideoAbuse &
|
||||||
Pick<VideoAbuseModel, 'toActivityPubObject'> &
|
Pick<VideoAbuseModel, 'toActivityPubObject'> &
|
||||||
Use<'Video', MVideo>
|
Use<'Video', MVideoAccountLightBlacklistAllFiles>
|
||||||
|
|
||||||
export type MVideoAbuseAccountVideo =
|
export type MVideoAbuseAccountVideo =
|
||||||
MVideoAbuse &
|
MVideoAbuse &
|
||||||
Pick<VideoAbuseModel, 'toActivityPubObject'> &
|
Pick<VideoAbuseModel, 'toActivityPubObject'> &
|
||||||
Use<'Video', MVideo> &
|
Use<'Video', MVideoAccountLightBlacklistAllFiles> &
|
||||||
Use<'Account', MAccountDefault>
|
Use<'Account', MAccountDefault>
|
||||||
|
|
||||||
// ############################################################################
|
// ############################################################################
|
||||||
|
@ -31,4 +31,5 @@ export type MVideoAbuseAccountVideo =
|
||||||
export type MVideoAbuseFormattable =
|
export type MVideoAbuseFormattable =
|
||||||
MVideoAbuse &
|
MVideoAbuse &
|
||||||
Use<'Account', MAccountFormattable> &
|
Use<'Account', MAccountFormattable> &
|
||||||
Use<'Video', Pick<MVideo, 'id' | 'uuid' | 'name' | 'nsfw'>>
|
Use<'Video', Pick<MVideoAccountLightBlacklistAllFiles,
|
||||||
|
'id' | 'uuid' | 'name' | 'nsfw' | 'getMiniatureStaticPath' | 'isBlacklisted' | 'VideoChannel'>>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { Account } from '../../actors/index'
|
import { Account } from '../../actors/index'
|
||||||
import { VideoConstant } from '../video-constant.model'
|
import { VideoConstant } from '../video-constant.model'
|
||||||
import { VideoAbuseState } from './video-abuse-state.model'
|
import { VideoAbuseState } from './video-abuse-state.model'
|
||||||
|
import { VideoChannelSummary } from '../channel/video-channel.model'
|
||||||
|
|
||||||
export interface VideoAbuse {
|
export interface VideoAbuse {
|
||||||
id: number
|
id: number
|
||||||
|
@ -16,6 +17,9 @@ export interface VideoAbuse {
|
||||||
uuid: string
|
uuid: string
|
||||||
nsfw: boolean
|
nsfw: boolean
|
||||||
deleted: boolean
|
deleted: boolean
|
||||||
|
blacklisted: boolean
|
||||||
|
thumbnailPath?: string
|
||||||
|
channel?: VideoChannelSummary
|
||||||
}
|
}
|
||||||
|
|
||||||
createdAt: Date
|
createdAt: Date
|
||||||
|
|
Loading…
Reference in New Issue