mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #49750 from nextcloud/bugfix/noid/oracle-federation
fix(federation): Allow Oracles empty strings
This commit is contained in:
commit
28ec9c7e80
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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in a new issue