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

This commit is contained in:
tateisu 2018-09-01 12:09:45 +09:00
parent a73d8a45d0
commit c06121d9c3
1 changed files with 8 additions and 1 deletions

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)