[ActivityPub] Revert usage of bitwise-operator & in the inbox_handler class.

This commit is contained in:
tenma 2019-10-17 20:25:00 +01:00
parent b434bead2c
commit 2ae93dbec6
1 changed files with 4 additions and 4 deletions

View File

@ -94,13 +94,13 @@ class Activitypub_inbox_handler
$valid = true; $valid = true;
switch ($this->activity['type']) { switch ($this->activity['type']) {
case 'Accept': case 'Accept':
$valid &= Activitypub_accept::validate_object($this->object); $valid = Activitypub_accept::validate_object($this->object);
break; break;
case 'Create': case 'Create':
$valid &= Activitypub_create::validate_object($this->object); $valid = Activitypub_create::validate_object($this->object);
break; break;
case 'Delete': case 'Delete':
$valid &= Activitypub_delete::validate_object($this->object); $valid = Activitypub_delete::validate_object($this->object);
break; break;
case 'Follow': case 'Follow':
case 'Like': case 'Like':
@ -110,7 +110,7 @@ class Activitypub_inbox_handler
} }
break; break;
case 'Undo': case 'Undo':
$valid &= Activitypub_undo::validate_object($this->object); $valid = Activitypub_undo::validate_object($this->object);
break; break;
default: default:
throw new Exception('Unknown Activity Type.'); throw new Exception('Unknown Activity Type.');