1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-14 04:24:05 +02:00

fix: throw exception when outbox not found, #3255 (#3260)

This commit is contained in:
Dag
2023-02-15 21:42:05 +01:00
committed by GitHub
parent c27a300e02
commit 286790727b
2 changed files with 3 additions and 17 deletions

View File

@@ -62,6 +62,9 @@ class MastodonBridge extends BridgeAbstract
public function collectData()
{
$user = $this->fetchAP($this->getURI());
if (!isset($user['outbox'])) {
throw new \Exception('Unable to find the outbox');
}
$content = $this->fetchAP($user['outbox']);
if (is_array($content['first'])) { // mobilizon
$content = $content['first'];