mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-30 10:34:53 +01:00
リファクタ
This commit is contained in:
parent
19b187f430
commit
0ae936ed70
@ -228,12 +228,12 @@ open class TootAccount(parser : TootParser, src : JSONObject) {
|
||||
this.id = EntityId.mayDefault(src.parseString("id"))
|
||||
|
||||
this.acct = when {
|
||||
|
||||
|
||||
// アクセス元から見て内部ユーザなら short acct
|
||||
host.equals(parser.linkHelper.host ,ignoreCase = true ) -> username
|
||||
|
||||
remoteHost?.equals(parser.linkHelper.host, ignoreCase = true) != false -> username
|
||||
|
||||
// アクセス元から見て外部ユーザならfull acct
|
||||
else-> "${username}@$host"
|
||||
else -> "${username}@$host"
|
||||
}
|
||||
|
||||
this.followers_count = src.parseLong("followersCount") ?: - 1L
|
||||
|
Loading…
x
Reference in New Issue
Block a user