summaryrefslogtreecommitdiffstats
path: root/lib/Model/ActivityPub/Stream.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Model/ActivityPub/Stream.php')
-rw-r--r--lib/Model/ActivityPub/Stream.php10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Model/ActivityPub/Stream.php b/lib/Model/ActivityPub/Stream.php
index d4df8866..03714965 100644
--- a/lib/Model/ActivityPub/Stream.php
+++ b/lib/Model/ActivityPub/Stream.php
@@ -684,19 +684,11 @@ class Stream extends ACore implements IQueryRow, JsonSerializable {
$type = '';
}
- $status = null;
- $statusPost = $this->getDetails('post');
- if (sizeof($statusPost) > 0) {
- $status = new Stream();
- $status->importFromLocal($statusPost);
- $status->setExportFormat(self::FORMAT_LOCAL);
- }
-
$result = [
'id' => (string)$this->getNid(),
'type' => $type,
'created_at' => date('Y-m-d\TH:i:s', $this->getPublishedTime()) . '.000Z',
- 'status' => $status,
+ 'status' => $this->getObject(),
];
if ($this->hasActor()) {