This commit is contained in:
Matthias Pfefferle 2022-12-27 15:56:46 +01:00
parent c221daef86
commit 6878b86922
2 changed files with 2 additions and 1 deletions

View file

@ -76,7 +76,6 @@ class Post {
$permalink = \get_permalink( $post );
}
// replace 'trashed' for delete activity
return $permalink;
}

View file

@ -16,6 +16,8 @@ class Test_Activitypub_Post extends WP_UnitTestCase {
\wp_trash_post( $post );
$post = \get_post( $post );
$activitypub_post = new \Activitypub\Model\Post( $post );
$this->assertEquals( $permalink, $activitypub_post->get_id() );