Browse Source

Merge pull request #34353 from nextcloud/fix/noid/reference-url-fallback

Reference url can always fallback to the link itself
tags/v26.0.0beta1
Julien Veyssier 1 year ago
parent
commit
4844ca619c
No account linked to committer's email address

+ 1
- 1
lib/public/Collaboration/Reference/IReference.php View File

@@ -98,7 +98,7 @@ interface IReference extends JsonSerializable {
/**
* @since 25.0.0
*/
public function getUrl(): ?string;
public function getUrl(): string;

/**
* Set the reference specific rich object representation

+ 2
- 2
lib/public/Collaboration/Reference/Reference.php View File

@@ -149,8 +149,8 @@ class Reference implements IReference {
* @inheritdoc
* @since 25.0.0
*/
public function getUrl(): ?string {
return $this->url;
public function getUrl(): string {
return $this->url ?? $this->reference;
}

/**

Loading…
Cancel
Save