mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Fix #1868
This commit is contained in:
parent
8efa065716
commit
16dbfdd693
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue