feat(profile): 相互リンク機能の追加 (MisskeyIO#675)
This commit is contained in:
parent
b059162324
commit
b6a5a36eaa
37 changed files with 1130 additions and 20 deletions
|
@ -18,6 +18,17 @@ const ajv = new Ajv({
|
|||
});
|
||||
|
||||
ajv.addFormat('misskey:id', /^[a-zA-Z0-9]+$/);
|
||||
ajv.addFormat('url', {
|
||||
type: 'string',
|
||||
validate: (url: string) => {
|
||||
try {
|
||||
new URL(url);
|
||||
return true;
|
||||
} catch (e) {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
export type Response = Record<string, any> | void;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue