fix: quickfix for url param not provided for some sources.

This commit is contained in:
aminecmi 2023-02-25 22:46:04 +01:00
parent ab9c46f0eb
commit 559c17bc1d
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ class SelfossModel {
)
@Serializable
data class SourceParams(
val url: String
val url: String?
)
@Serializable
data class Item(

View File

@ -20,7 +20,7 @@ fun SOURCE.toView(): SelfossModel.Source =
this.spout,
this.error,
this.icon,
if (this.url != null) SelfossModel.SourceParams(this.url) else null
SelfossModel.SourceParams(this.url)
)
fun SelfossModel.Source.toEntity(): SOURCE =