mirror of https://github.com/nextcloud/server
reference url can always fallback to the link itself
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
This commit is contained in:
parent
910c774b35
commit
eff783797a
|
@ -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 New Issue