某タンスのプロフ絵文字に対応
This commit is contained in:
parent
c6fa3fa1a1
commit
331356a0c7
@ -186,8 +186,12 @@ open class TootAccount(parser : TootParser, src : JSONObject) {
|
|||||||
|
|
||||||
// 絵文字データは先に読んでおく
|
// 絵文字データは先に読んでおく
|
||||||
this.custom_emojis = parseMapOrNull(CustomEmoji.decode, src.optJSONArray("emojis"))
|
this.custom_emojis = parseMapOrNull(CustomEmoji.decode, src.optJSONArray("emojis"))
|
||||||
this.profile_emojis =
|
|
||||||
parseMapOrNull(::NicoProfileEmoji, src.optJSONArray("profile_emojis"))
|
this.profile_emojis = when(val o = src.opt("profile_emojis")) {
|
||||||
|
is JSONArray -> parseMapOrNull(::NicoProfileEmoji, o, TootStatus.log)
|
||||||
|
is JSONObject ->parseProfileEmoji2(::NicoProfileEmoji, o, TootStatus.log)
|
||||||
|
else -> null
|
||||||
|
}
|
||||||
|
|
||||||
// 疑似アカウントにacctとusernameだけ
|
// 疑似アカウントにacctとusernameだけ
|
||||||
this.url = src.parseString("url")
|
this.url = src.parseString("url")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user