X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Factivitystreamjsondocument.php;h=ed3197bc7f723c792cc1af7853faa29b42815b4f;hb=1ee79dc3791162f7ef9b92befaef597328266ce1;hp=c67fc5a42f159ecfc485975256fbfbfd0faaafd6;hpb=ae3eaee6cd5f67b0260abf30c3517072e372e270;p=quix0rs-gnu-social.git diff --git a/lib/activitystreamjsondocument.php b/lib/activitystreamjsondocument.php index c67fc5a42f..ed3197bc7f 100644 --- a/lib/activitystreamjsondocument.php +++ b/lib/activitystreamjsondocument.php @@ -165,7 +165,7 @@ class ActivityStreamJSONDocument extends JSONActivityCollection */ function asString() { - $this->doc['generator'] = 'StatusNet ' . STATUSNET_VERSION; // extension + $this->doc['generator'] = 'GNU social ' . GNUSOCIAL_VERSION; // extension $this->doc['title'] = $this->title; $this->doc['url'] = $this->url; $this->doc['totalItems'] = $this->count; @@ -201,9 +201,9 @@ class ActivityStreamsMediaLink extends ActivityStreamsLink { parent::__construct($url, $rel, $mediaType); $this->linkDict = array( - 'width' => $width, - 'height' => $height, - 'duration' => $duration + 'width' => intval($width), + 'height' => intval($height), + 'duration' => intval($duration) ); }