summaryrefslogtreecommitdiffstats
path: root/lib/Model/ActivityPub
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model/ActivityPub')
-rw-r--r--lib/Model/ActivityPub/ACore.php6
-rw-r--r--lib/Model/ActivityPub/Internal/SocialAppNotification.php2
-rw-r--r--lib/Model/ActivityPub/Object/Announce.php2
-rw-r--r--lib/Model/ActivityPub/Object/Follow.php2
-rw-r--r--lib/Model/ActivityPub/Stream.php4
5 files changed, 8 insertions, 8 deletions
diff --git a/lib/Model/ActivityPub/ACore.php b/lib/Model/ActivityPub/ACore.php
index 7b950a69..da06209a 100644
--- a/lib/Model/ActivityPub/ACore.php
+++ b/lib/Model/ActivityPub/ACore.php
@@ -386,7 +386,7 @@ class ACore extends Item implements JsonSerializable, IQueryRow {
*/
public function addEntry(string $k, string $v): ACore {
if ($v === '') {
-// unset($this->entries[$k]);
+ // unset($this->entries[$k]);
return $this;
}
@@ -436,7 +436,7 @@ class ACore extends Item implements JsonSerializable, IQueryRow {
*/
public function addEntryArray(string $k, array $v): ACore {
if ($v === []) {
-// unset($this->entries[$k]);
+ // unset($this->entries[$k]);
return $this;
}
@@ -455,7 +455,7 @@ class ACore extends Item implements JsonSerializable, IQueryRow {
*/
public function addEntryItem(string $k, ACore $v): ACore {
if ($v === null) {
-// unset($this->entries[$k]);
+ // unset($this->entries[$k]);
return $this;
}
diff --git a/lib/Model/ActivityPub/Internal/SocialAppNotification.php b/lib/Model/ActivityPub/Internal/SocialAppNotification.php
index ca1ccc15..530a1c60 100644
--- a/lib/Model/ActivityPub/Internal/SocialAppNotification.php
+++ b/lib/Model/ActivityPub/Internal/SocialAppNotification.php
@@ -74,7 +74,7 @@ class SocialAppNotification extends Stream implements JsonSerializable {
* @return array
*/
public function jsonSerialize(): array {
-// $this->addEntryInt('publishedTime', $this->getPublishedTime());
+ // $this->addEntryInt('publishedTime', $this->getPublishedTime());
return array_merge(
parent::jsonSerialize(),
diff --git a/lib/Model/ActivityPub/Object/Announce.php b/lib/Model/ActivityPub/Object/Announce.php
index eb568949..c139d41c 100644
--- a/lib/Model/ActivityPub/Object/Announce.php
+++ b/lib/Model/ActivityPub/Object/Announce.php
@@ -66,7 +66,7 @@ class Announce extends Stream implements JsonSerializable {
parent::import($data);
// Might be better to create 'actor_id' field in the 'server_streams' table.
-// $this->setAttributedTo($this->getActorId());
+ // $this->setAttributedTo($this->getActorId());
}
/**
diff --git a/lib/Model/ActivityPub/Object/Follow.php b/lib/Model/ActivityPub/Object/Follow.php
index 00328785..8e77ac4b 100644
--- a/lib/Model/ActivityPub/Object/Follow.php
+++ b/lib/Model/ActivityPub/Object/Follow.php
@@ -31,9 +31,9 @@ declare(strict_types=1);
namespace OCA\Social\Model\ActivityPub\Object;
-use OCA\Social\Tools\IQueryRow;
use JsonSerializable;
use OCA\Social\Model\ActivityPub\ACore;
+use OCA\Social\Tools\IQueryRow;
/**
* Class Follow
diff --git a/lib/Model/ActivityPub/Stream.php b/lib/Model/ActivityPub/Stream.php
index 6ffc5a73..d4df8866 100644
--- a/lib/Model/ActivityPub/Stream.php
+++ b/lib/Model/ActivityPub/Stream.php
@@ -568,7 +568,7 @@ class Stream extends ACore implements IQueryRow, JsonSerializable {
$actor->importFromLocal($this->getArray('account', $data));
$actor->setExportFormat(ACore::FORMAT_LOCAL);
$this->setActor($actor);
-// $this->setCompleteDetails(true);
+ // $this->setCompleteDetails(true);
}
@@ -711,7 +711,7 @@ class Stream extends ACore implements IQueryRow, JsonSerializable {
public function jsonSerialize(): array {
$result = parent::jsonSerialize();
-// $result['media_attachments'] = $this->getAttachments();
+ // $result['media_attachments'] = $this->getAttachments();
$result['attachment'] = $this->getAttachments();
return $result;