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); common_debug('ActivityPubPlugin Notice Grabber: '.$candidate->getUrl(). ' is different of '.$url);
} }
} catch (Exception $e) { } 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 { try {
Activitypub_notice::validate_remote_notice($res); Activitypub_notice::validate_remote_notice($res);
} catch (Exception $e) { } 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; throw $e;
} }
@ -147,7 +147,7 @@ class ActivityPubPlugin extends Plugin
$settings $settings
); );
} catch (Exception $e) { } 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; throw $e;
} }

View File

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