diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 3f680726..2cd6c18a 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -420,8 +420,7 @@ class ApiController extends Controller { ProbeOptions::ACCOUNT, ProbeOptions::PUBLIC, ProbeOptions::DIRECT, - ProbeOptions::FAVOURITES, - ProbeOptions::NOTIFICATIONS + ProbeOptions::FAVOURITES ] )) { throw new UnknownProbeException('unknown timeline'); diff --git a/lib/Model/ActivityPub/Stream.php b/lib/Model/ActivityPub/Stream.php index b540cd42..29ce3973 100644 --- a/lib/Model/ActivityPub/Stream.php +++ b/lib/Model/ActivityPub/Stream.php @@ -604,11 +604,20 @@ class Stream extends ACore implements IQueryRow, JsonSerializable { $type = ''; } + $status = null; + if ($statusPost = $this->getDetails('post')) { + if (!empty($statusPost)) { + $status = new Stream(); + $status->importFromCache($statusPost); + $status->setExportFormat(self::FORMAT_LOCAL); + } + } + $result = [ 'id' => $this->getId(), 'type' => $type, 'created_at' => $this->getOriginCreationTime(), - 'status' => $this->getDetails('post'), + 'status' => $status, ]; if ($this->hasActor()) {