From f916bca388e3c0e4977c36e4ba732b2ce0f938bb Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Sat, 3 Dec 2022 07:38:02 +0100 Subject: [PATCH] Add a css class to the image attachments --- integration/class-friends-feed-parser-activitypub.php | 2 +- tests/test-class-friends-feed-parser-activitypub.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/class-friends-feed-parser-activitypub.php b/integration/class-friends-feed-parser-activitypub.php index 34f3d77..db155c1 100644 --- a/integration/class-friends-feed-parser-activitypub.php +++ b/integration/class-friends-feed-parser-activitypub.php @@ -248,7 +248,7 @@ class Friends_Feed_Parser_ActivityPub extends \Friends\Feed_Parser { $data['content'] .= PHP_EOL; $data['content'] .= ''; - $data['content'] .= '

'; + $data['content'] .= '

'; $data['content'] .= ''; } $meta = \Activitypub\get_remote_metadata_by_actor( $object['attributedTo'] ); diff --git a/tests/test-class-friends-feed-parser-activitypub.php b/tests/test-class-friends-feed-parser-activitypub.php index f48efb1..79f5a74 100644 --- a/tests/test-class-friends-feed-parser-activitypub.php +++ b/tests/test-class-friends-feed-parser-activitypub.php @@ -68,7 +68,7 @@ class Test_Friends_Feed_Parser_ActivityPub extends \WP_UnitTestCase { $this->assertEquals( $post_count + 1, count( $posts ) ); $this->assertStringStartsWith( $content, $posts[0]->post_content ); - $this->assertStringContainsString( '', $posts[0]->post_content ); + $this->assertStringContainsString( 'post_content ); $this->assertEquals( $this->friend_id, $posts[0]->post_author ); // Do another test post, this time with a URL that has an @-id.