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

@@ -68,7 +68,7 @@ class Activitypub_postman
$followers = apActorFollowersAction::generate_followers($this->actor, 0, null);
foreach ($followers as $sub) {
try {
$to[]= Activitypub_profile::from_profile($discovery->lookup($sub)[0]);
$to[]= Activitypub_profile::from_profile($discovery->lookup($sub)[0]);
} catch (Exception $e) {
// Not an ActivityPub Remote Follower, let it go
}