mirror of
https://github.com/tateisu/SubwayTooter
synced 2025-01-30 18:44:52 +01:00
リファクタ
This commit is contained in:
parent
19b187f430
commit
0ae936ed70
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user