This commit is contained in:
Aya Morisawa 2018-07-20 21:59:09 +09:00
parent 8efa065716
commit 16dbfdd693

View file

@ -49,7 +49,8 @@ export default Vue.extend({
add() { add() {
(this as any).apis.input({ (this as any).apis.input({
title: '%i18n:@username%', title: '%i18n:@username%',
}).then(async username => { }).then(async (username: string) => {
if (username.startsWith('@')) username = username.slice(1);
const user = await (this as any).api('users/show', { const user = await (this as any).api('users/show', {
username username
}); });