1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-30 18:44:52 +01:00

リファクタ

This commit is contained in:
tateisu 2018-12-02 19:51:32 +09:00
parent 19b187f430
commit 0ae936ed70

View File

@ -230,7 +230,7 @@ open class TootAccount(parser : TootParser, src : JSONObject) {
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"