Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Merge branch 'feature/admin-comments' into develop

Chocobozzz19149d45b8f6
diff --cc client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.scss
index 0000000000,b3746b0c58..4398358990
mode 000000,100644..100644
--- a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.scss
+++ b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.scss
@@@ -1,0 -1,66 +1,66 @@@
+ @import 'mixins';
+
+ h1 {
+ my-feed {
+ margin-left: 5px;
+ display: inline-block;
+
+ ::ng-deep {
+ my-global-icon {
+ width: 15px !important;
+ top: 0 !important;
+ }
+ }
+ }
+ }
+
+ my-global-icon {
- width: 24px;
++ width: 24px;
+ height: 24px;
+ }
+
+ .input-group {
+ @include peertube-input-group(300px);
+
+ .dropdown-toggle::after {
+ margin-left: 0;
+ }
+ }
+
+ .caption {
+ justify-content: flex-end;
+
+ input {
+ @include peertube-input-text(250px);
+ flex-grow: 1;
+ }
+ }
+
+ .video {
+ display: flex;
+ flex-direction: column;
+
+ em {
+ font-size: 11px;
+ }
+
+ a {
+ @include ellipsis
+ }
+ }
+
+ .comment-html {
+ ::ng-deep {
+ > div {
+ max-height: 22px;
+ }
+
+ div, p {
+ @include ellipsis;
+ }
+
+ p {
+ margin: 0;
+ }
+ }
+ }
diff --cc server/tests/api/live/live.ts
index aa2e1318ae,aa2e1318ae..94c966c9fe
--- a/server/tests/api/live/live.ts
+++ b/server/tests/api/live/live.ts
@@@ -10,7 -10,7 +10,6 @@@ import
checkLiveCleanup,
checkLiveSegmentHash,
checkResolutionsInMasterPlaylist,
-- checkSegmentHash,
cleanupTests,
createLive,
doubleFollow,
diff --cc server/tests/api/videos/video-comments.ts
index afb58e95a3,18a86beada..141a80690a
--- a/server/tests/api/videos/video-comments.ts
+++ b/server/tests/api/videos/video-comments.ts
@@@ -1,8 -1,8 +1,8 @@@
/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */
--import * as chai from 'chai'
import 'mocha'
- import { VideoComment, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
-import { VideoComment, VideoCommentAdmin, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
++import * as chai from 'chai'
++
import { cleanupTests, testImage } from '../../../../shared/extra-utils'
import {
createUser,
@@@ -21,6 -22,7 +22,7 @@@ import
getVideoCommentThreads,
getVideoThreadComments
} from '../../../../shared/extra-utils/videos/video-comments'
-import { isLocalLiveVideoAccepted } from '@server/lib/moderation'
++import { VideoComment, VideoCommentAdmin, VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
const expect = chai.expect
diff --cc server/tests/api/videos/video-playlists.ts
index 0bfb5bcd40,0bfb5bcd40..b194665ba1
--- a/server/tests/api/videos/video-playlists.ts
+++ b/server/tests/api/videos/video-playlists.ts
@@@ -628,7 -628,7 +628,7 @@@ describe('Test video playlists', functi
let video3: string
before(async function () {
-- this.timeout(30000)
++ this.timeout(60000)
groupUser1 = [ Object.assign({}, servers[0], { accessToken: userAccessTokenServer1 }) ]
groupWithoutToken1 = [ Object.assign({}, servers[0], { accessToken: undefined }) ]
@@@ -656,6 -656,6 +656,8 @@@
video2 = (await uploadVideoAndGetId({ server: servers[1], videoName: 'video 90' })).uuid
video3 = (await uploadVideoAndGetId({ server: servers[0], videoName: 'video 91', nsfw: true })).uuid
++ await waitJobs(servers)
++
await addVideo({ videoId: video1, startTimestamp: 15, stopTimestamp: 28 })
await addVideo({ videoId: video2, startTimestamp: 35 })
await addVideo({ videoId: video3 })