updated plugin ActivityPub version 0.13.4

This commit is contained in:
2022-08-19 16:15:51 +00:00
committed by Gitium
parent a3483bf62f
commit b49569de47
14 changed files with 149 additions and 71 deletions

View File

@ -30,7 +30,7 @@ class Activity {
}
$this->type = \ucfirst( $type );
$this->published = \date( 'Y-m-d\TH:i:s\Z', \strtotime( 'now' ) );
$this->published = \gmdate( 'Y-m-d\TH:i:s\Z', \strtotime( 'now' ) );
}
public function __call( $method, $params ) {

View File

@ -46,7 +46,7 @@ class Post {
$array = array(
'id' => $this->id,
'type' => $this->object_type,
'published' => \date( 'Y-m-d\TH:i:s\Z', \strtotime( $post->post_date_gmt ) ),
'published' => \gmdate( 'Y-m-d\TH:i:s\Z', \strtotime( $post->post_date_gmt ) ),
'attributedTo' => \get_author_posts_url( $post->post_author ),
'summary' => $this->summary,
'inReplyTo' => null,