Fix notice author

This commit is contained in:
Diogo Cordeiro 2018-08-02 02:14:43 +01:00
parent 1d0d08544a
commit a704053f6d
2 changed files with 5 additions and 5 deletions

View File

@ -109,7 +109,7 @@ class ActivityPubPlugin extends Plugin
common_debug('ActivityPubPlugin Notice Grabber: '.$candidate->getUrl(). ' is different of '.$url);
}
} catch (Exception $e) {
common_debug('ActivityPubPlugin Notice Grabber failed to find: '.$url. 'offline.');
common_debug('ActivityPubPlugin Notice Grabber: failed to find: '.$url. 'offline.');
}
}
@ -124,7 +124,7 @@ class ActivityPubPlugin extends Plugin
try {
Activitypub_notice::validate_remote_notice($res);
} catch (Exception $e) {
common_debug('ActivityPub Explorer: Invalid potential remote notice while processing id: '.$url. '. He returned the following: '.json_encode($res, JSON_UNESCAPED_SLASHES));
common_debug('ActivityPubPlugin Notice Grabber: Invalid potential remote notice while processing id: '.$url. '. He returned the following: '.json_encode($res, JSON_UNESCAPED_SLASHES));
throw $e;
}
@ -147,7 +147,7 @@ class ActivityPubPlugin extends Plugin
$settings
);
} catch (Exception $e) {
common_debug('ActivityPubPlugin Notice Grabber failed to find: '.$url. 'online.');
common_debug('ActivityPubPlugin Notice Grabber: failed to find: '.$url. 'online.');
throw $e;
}

View File

@ -54,7 +54,7 @@ if (isset($res->longitude)) {
try {
Activitypub_notice::create_notice(
ActivityPub_explorer::get_profile_from_url($res->atributtedTo),
ActivityPub_explorer::get_profile_from_url($data->actor),
$res->id,
$res->url,
$res->content,