cleanup(backend): refactor UtilityService (MisskeyIO#858)
This commit is contained in:
parent
cb73368c83
commit
ff195d4f8d
31 changed files with 106 additions and 126 deletions
|
@ -311,7 +311,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
|
|||
: this.utilityService.isSelfHost(src) ? null // 自ホスト指定
|
||||
: (src || noteUserHost); // 指定されたホスト || ノートなどの所有者のホスト (こっちがリアクションにマッチすることはない)
|
||||
|
||||
host = this.utilityService.toPunyNullable(host);
|
||||
host = host ? this.utilityService.normalizeHost(host) : null;
|
||||
|
||||
return host;
|
||||
}
|
||||
|
@ -324,7 +324,7 @@ export class CustomEmojiService implements OnApplicationShutdown {
|
|||
const name = match[1];
|
||||
|
||||
// ホスト正規化
|
||||
const host = this.utilityService.toPunyNullable(this.normalizeHost(match[2], noteUserHost));
|
||||
const host = this.normalizeHost(match[2], noteUserHost);
|
||||
|
||||
return { name, host };
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue