notestockでmisskeyの投稿をみるとurlを取れなくなってた問題の対策

This commit is contained in:
tateisu 2023-01-18 18:10:26 +09:00
parent 9c17aa7d6a
commit aa97c18891
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,6 @@ class TootStatus(parser: TootParser, src: JsonObject) : TimelineItem() {
deletedAt = null
time_deleted_at = 0L
this.url = src.string("url")
this.created_at = src.string("published")
val apTag = APTag(parser, src.jsonArray("tag"))
@ -459,6 +458,7 @@ class TootStatus(parser: TootParser, src: JsonObject) : TimelineItem() {
this.readerApDomain = null
this.uri = src.string("id") ?: error("missing uri")
this.url = src.string("url") ?: uri
this.id = findStatusIdFromUri(uri, url) ?: EntityId.DEFAULT
this.time_created_at = parseTime(this.created_at)