kopia lustrzana https://github.com/nextcloud/social
rodzic
76775ddf28
commit
d028ab206c
|
@ -32,6 +32,7 @@ namespace OCA\Social\Model\ActivityPub\Object;
|
|||
|
||||
|
||||
use JsonSerializable;
|
||||
use OCA\Social\Exceptions\InvalidResourceEntryException;
|
||||
use OCA\Social\Exceptions\UrlCloudException;
|
||||
use OCA\Social\Model\ActivityPub\ACore;
|
||||
|
||||
|
@ -63,6 +64,7 @@ class Image extends Document implements JsonSerializable {
|
|||
* @param array $data
|
||||
*
|
||||
* @throws UrlCloudException
|
||||
* @throws InvalidResourceEntryException
|
||||
*/
|
||||
public function import(array $data) {
|
||||
parent::import($data);
|
||||
|
|
|
@ -40,12 +40,17 @@ class Note extends ACore implements JsonSerializable {
|
|||
|
||||
const TYPE = 'Note';
|
||||
|
||||
const TYPE_PUBLIC = 'public';
|
||||
const TYPE_UNLISTED = 'unlisted';
|
||||
const TYPE_FOLLOWERS = 'followers';
|
||||
const TYPE_DIRECT = 'direct';
|
||||
|
||||
|
||||
/** @var string */
|
||||
private $content;
|
||||
private $content = '';
|
||||
|
||||
/** @var string */
|
||||
private $attributedTo;
|
||||
private $attributedTo = '';
|
||||
|
||||
/** @var string */
|
||||
private $inReplyTo = '';
|
||||
|
|
|
@ -55,10 +55,10 @@ class Post implements JsonSerializable {
|
|||
private $replyTo = '';
|
||||
|
||||
/** @var string */
|
||||
private $content;
|
||||
private $content = '';
|
||||
|
||||
/** @var string */
|
||||
private $type;
|
||||
private $type = '';
|
||||
|
||||
|
||||
/**
|
||||
|
|
Ładowanie…
Reference in New Issue