Skip to content

Commit a718025

Browse files
feat(syndicator-mastodon): validate url setup prompt
1 parent 0ddb4f6 commit a718025

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/syndicator-mastodon/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ export default class MastodonSyndicator {
7474
type: "text",
7575
name: "url",
7676
message: "What is the URL of your Mastodon server?",
77-
description: "i.e. https://mastodon.social",
77+
validate: (value) =>
78+
URL.canParse(value)
79+
? true
80+
: "Enter a valid URL, for example https://mastodon.social",
7881
},
7982
{
8083
type: "text",

0 commit comments

Comments
 (0)