メンションを処理

This commit is contained in:
syuilo
2018-05-07 03:19:24 +09:00
parent b77cbeca22
commit 1f018d87f2
2 changed files with 43 additions and 7 deletions

View File

@ -4,7 +4,7 @@ import webFinger from './webfinger';
import config from '../config';
import { createPerson } from './activitypub/models/person';
export default async (username, _host, option) => {
export default async (username, _host, option?) => {
const usernameLower = username.toLowerCase();
const hostAscii = toASCII(_host).toLowerCase();
const host = toUnicode(hostAscii);