notestockでmisskeyの投稿をみるとurlを取れなくなってた問題の対策
This commit is contained in:
parent
9c17aa7d6a
commit
aa97c18891
|
@ -440,7 +440,6 @@ class TootStatus(parser: TootParser, src: JsonObject) : TimelineItem() {
|
||||||
deletedAt = null
|
deletedAt = null
|
||||||
time_deleted_at = 0L
|
time_deleted_at = 0L
|
||||||
|
|
||||||
this.url = src.string("url")
|
|
||||||
this.created_at = src.string("published")
|
this.created_at = src.string("published")
|
||||||
|
|
||||||
val apTag = APTag(parser, src.jsonArray("tag"))
|
val apTag = APTag(parser, src.jsonArray("tag"))
|
||||||
|
@ -459,6 +458,7 @@ class TootStatus(parser: TootParser, src: JsonObject) : TimelineItem() {
|
||||||
|
|
||||||
this.readerApDomain = null
|
this.readerApDomain = null
|
||||||
this.uri = src.string("id") ?: error("missing uri")
|
this.uri = src.string("id") ?: error("missing uri")
|
||||||
|
this.url = src.string("url") ?: uri
|
||||||
this.id = findStatusIdFromUri(uri, url) ?: EntityId.DEFAULT
|
this.id = findStatusIdFromUri(uri, url) ?: EntityId.DEFAULT
|
||||||
|
|
||||||
this.time_created_at = parseTime(this.created_at)
|
this.time_created_at = parseTime(this.created_at)
|
||||||
|
|
Loading…
Reference in New Issue