mirror of
https://github.com/tateisu/SubwayTooter
synced 2024-12-27 01:13:31 +01:00
リファクタ
This commit is contained in:
parent
d114933d8c
commit
a48298ffb6
@ -346,11 +346,7 @@ class PostHelper(
|
||||
}
|
||||
|
||||
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("viaMobile",true)
|
||||
@ -413,12 +409,8 @@ class PostHelper(
|
||||
)
|
||||
|
||||
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())
|
||||
}
|
||||
}
|
||||
|
||||
if(attachment_list != null) {
|
||||
val array = JSONArray()
|
||||
|
Loading…
Reference in New Issue
Block a user