Don't break when notice grabber fails

It's better to fragment the integrity of a note than to fail publishing a note
This commit is contained in:
Diogo Cordeiro
2018-08-06 19:57:28 +01:00
parent 334923e542
commit 935495415b
5 changed files with 11 additions and 7 deletions

View File

@@ -243,7 +243,7 @@ class Activitypub_profile extends Managed_DataObject
$inboxes = Activitypub_explorer::get_actor_inboxes_uri($url);
if ($inboxes == null) {
throw new Exception ('This is not an ActivityPub user thus AProfile is politely refusing to proceed.');
throw new Exception('This is not an ActivityPub user thus AProfile is politely refusing to proceed.');
}
$aprofile->created = $aprofile->modified = common_sql_now();