1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-26 08:53:12 +01:00

(Misskey)添付メディアの説明文の改善

This commit is contained in:
tateisu 2018-09-01 12:09:45 +09:00
parent a73d8a45d0
commit c06121d9c3

View File

@ -83,7 +83,14 @@ class TootAttachment(serviceType:ServiceType,src : JSONObject) : TootAttachmentL
preview_url = src.parseString("thumbnailUrl")
remote_url = url
text_url = url
description = src.parseString("comment")
description = arrayOf(
src.parseString("name"),
src.parseString("comment")
)
.filterNotNull()
.joinToString(" / ")
focusX = 0f
focusY = 0f
isSensitive = src.optBoolean("isSensitive",false)