Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
fix add default value to edited(time)
Browse files Browse the repository at this point in the history
  • Loading branch information
WhichWho committed May 27, 2022
1 parent 1455ac3 commit 0feafed
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main/kotlin/loli/ball/kemono/bean/Account.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ data class FavoritePostItem(
val added: String, //收藏时间
val attachments: List<Attachment>, //收藏的附件 可能为空
val content: String, //作品简介html
val edited: String, //编辑时间
val edited: String = "", //编辑时间
// val embed: Any? = null, //ignore
val faved_seq: Int, //收藏的顺序
val file: Attachment, //收藏的附件 封面预览图
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/loli/ball/kemono/factory/AccountFactory.kt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ object AccountFactory {

private val postParser = Json {
ignoreUnknownKeys = true
coerceInputValues = true
}

fun parseFavoritePost(json: String): List<FavoritePostItem> {
Expand Down

0 comments on commit 0feafed

Please sign in to comment.