fix(federation): Allow Oracles empty strings

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/49750/head
Joas Schilling 2024-12-10 11:20:45 +07:00
parent 5af0d137e7
commit 280b492919
No known key found for this signature in database
GPG Key ID: F72FA5B49FFA96B0
1 changed files with 9 additions and 3 deletions

@ -39,8 +39,7 @@ use OCP\AppFramework\Db\Entity;
* @method void setType(int $type)
* @method int getStatus()
* @method void setStatus(int $status)
* @method void setAccount(string $account)
* @method string getAccount()
* @method void setAccount(?string $account)
* @method void setMetadata(array $metadata)
* @method ?array getMetadata()
* @method void setCreation(int $creation)
@ -56,7 +55,7 @@ class Signatory extends Entity implements JsonSerializable {
protected string $host = '';
protected string $publicKey = '';
protected string $privateKey = '';
protected string $account = '';
protected ?string $account = '';
protected int $type = 9;
protected int $status = 1;
protected ?array $metadata = null;
@ -145,6 +144,13 @@ class Signatory extends Entity implements JsonSerializable {
return SignatoryStatus::from($this->getStatus());
}
/**
* @experimental 31.0.0
*/
public function getAccount(): string {
return $this->account ?? '';
}
/**
* update an entry in metadata
*