mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-15 14:37:36 -07:00
タグは最大100文字までにした
This commit is contained in:
parent
ac13593755
commit
bbb5189652
1 changed files with 3 additions and 1 deletions
|
@ -94,7 +94,7 @@ export default async (user: IUser, data: {
|
|||
if (data.visibility == null) data.visibility = 'public';
|
||||
if (data.viaMobile == null) data.viaMobile = false;
|
||||
|
||||
const tags = data.tags || [];
|
||||
let tags = data.tags || [];
|
||||
|
||||
let tokens: any[] = null;
|
||||
|
||||
|
@ -114,6 +114,8 @@ export default async (user: IUser, data: {
|
|||
});
|
||||
}
|
||||
|
||||
tags = tags.filter(tag => tag.length <= 100);
|
||||
|
||||
if (data.visibleUsers) {
|
||||
data.visibleUsers = data.visibleUsers.filter(x => x != null);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue