]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/app/videos/+video-watch/comment/video-comment.component.ts
Hide big play button on autoplay
[github/Chocobozzz/PeerTube.git] / client / src / app / videos / +video-watch / comment / video-comment.component.ts
index 8f2d79ec1c405010ae3c64468328f5729360d3ea..26fc9d0b8c3ec9a730baf08bb75976e25f2b6d5a 100644 (file)
@@ -57,7 +57,7 @@ export class VideoCommentComponent implements OnInit, OnChanges {
       this.threadCreated.emit(this.commentTree)
     }
 
-    this.commentTree.children.push({
+    this.commentTree.children.unshift({
       comment: createdComment,
       children: []
     })
@@ -100,14 +100,15 @@ export class VideoCommentComponent implements OnInit, OnChanges {
       allowedTags: [ 'a', 'p', 'span', 'br' ],
       allowedSchemes: [ 'http', 'https' ],
       allowedAttributes: {
-        'a': [ 'href', 'class' ]
+        'a': [ 'href', 'class', 'target' ]
       },
       transformTags: {
         a: (tagName, attribs) => {
           return {
             tagName,
             attribs: Object.assign(attribs, {
-              target: '_blank'
+              target: '_blank',
+              rel: 'noopener noreferrer'
             })
           }
         }