mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #34357 from nextcloud/backport/34353/stable25
[stable25] Reference url can always fallback to the link itself
This commit is contained in:
commit
eafcc4e3a1
2 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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…
Reference in a new issue