mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-14 18:35:56 +01:00
リファクタ
This commit is contained in:
parent
d114933d8c
commit
a48298ffb6
@ -346,11 +346,7 @@ class PostHelper(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(in_reply_to_id != null) {
|
if(in_reply_to_id != null) {
|
||||||
if(account.isMisskey) {
|
|
||||||
json.put("replyId", in_reply_to_id.toString())
|
json.put("replyId", in_reply_to_id.toString())
|
||||||
} else {
|
|
||||||
json.put("in_reply_to_id", in_reply_to_id.toLong())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
json.put("viaMobile",true)
|
json.put("viaMobile",true)
|
||||||
@ -413,12 +409,8 @@ class PostHelper(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if(in_reply_to_id != null) {
|
if(in_reply_to_id != null) {
|
||||||
if(account.isMisskey) {
|
|
||||||
json.put("replyId", in_reply_to_id.toString())
|
|
||||||
} else {
|
|
||||||
json.put("in_reply_to_id", in_reply_to_id.toLong())
|
json.put("in_reply_to_id", in_reply_to_id.toLong())
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(attachment_list != null) {
|
if(attachment_list != null) {
|
||||||
val array = JSONArray()
|
val array = JSONArray()
|
||||||
|
Loading…
Reference in New Issue
Block a user