We can now manage relay servers and can send content to them

This commit is contained in:
Michael 2020-09-15 17:45:19 +00:00
parent ca624ec612
commit 178455928a
6 changed files with 226 additions and 3 deletions

View file

@ -163,11 +163,13 @@ class Receiver
if ($type != 'as:Announce') {
Logger::info('Not an announcement', ['activity' => $activity]);
return;
}
$object_id = JsonLD::fetchElement($activity, 'as:object', '@id');
if (empty($object_id)) {
Logger::info('No object id found', ['activity' => $activity]);
return;
}
Logger::info('Got relayed message id', ['id' => $object_id]);