Skip to content

Commit

Permalink
Merge pull request #49750 from nextcloud/bugfix/noid/oracle-federation
Browse files Browse the repository at this point in the history
fix(federation): Allow Oracles empty strings
  • Loading branch information
nickvergessen authored Dec 10, 2024
2 parents 70346e0 + 280b492 commit 28ec9c7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lib/unstable/Security/Signature/Model/Signatory.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,7 @@
* @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)
Expand All @@ -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;
Expand Down Expand Up @@ -145,6 +144,13 @@ public function getSignatoryStatus(): SignatoryStatus {
return SignatoryStatus::from($this->getStatus());
}

/**
* @experimental 31.0.0
*/
public function getAccount(): string {
return $this->account ?? '';
}

/**
* update an entry in metadata
*
Expand Down

0 comments on commit 28ec9c7

Please sign in to comment.