Merge pull request #49750 from nextcloud/bugfix/noid/oracle-federation

fix(federation): Allow Oracles empty strings
This commit is contained in:
Joas Schilling 2024-12-10 15:30:50 +01:00 committed by GitHub
commit 28ec9c7e80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
*