Simplify some logic

This commit is contained in:
Diogo Cordeiro
2018-08-06 16:44:11 +01:00
parent 0475954741
commit 76bea7b17e
2 changed files with 19 additions and 28 deletions

View File

@@ -63,10 +63,6 @@ class Activitypub_postman
public function __construct($from, $to)
{
$this->actor = $from;
if (empty ($to)) {
throw new Exception ('You can not summon up a postman without recipients!');
}
$discovery = new Activitypub_explorer();
$this->to = $to;
$followers = apActorFollowersAction::generate_followers($this->actor, 0, null);