From 733bc88faf1c0d8563a07841a5d3090a24498a60 Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 23 Dec 2022 12:12:12 +0100 Subject: [PATCH] fix phpcs issues --- includes/model/class-comment.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/model/class-comment.php b/includes/model/class-comment.php index c73ad7c..1dbafed 100644 --- a/includes/model/class-comment.php +++ b/includes/model/class-comment.php @@ -25,8 +25,8 @@ class Comment { * Initialize the class */ public function __construct( $comment = null ) { - $this->comment = $comment; - $this->id = $this->generate_comment_id(); + $this->comment = $comment; + $this->id = $this->generate_comment_id(); $this->comment_author_url = \get_author_posts_url( $this->comment->user_id ); $this->in_reply_to = $this->generate_parent_url(); $this->content_warning = $this->generate_content_warning(); @@ -66,7 +66,7 @@ class Comment { \strstr( \get_locale(), '_', true ) => $comment->comment_content, ), 'context' => $this->context, - //'source' => \get_comment_link( $comment ), //non-conforming, see https://www.w3.org/TR/activitypub/#source-property + // 'source' => \get_comment_link( $comment ), //non-conforming, see https://www.w3.org/TR/activitypub/#source-property 'url' => \get_comment_link( $comment ), //link for mastodon 'to' => $this->to_recipients, 'cc' => array( 'https://www.w3.org/ns/activitystreams#Public' ),