Skip to content

Commit

Permalink
Better support for @username@server.name identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
benpate committed Apr 27, 2023
1 parent f36d2cc commit 11f6dbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions service/following.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ func (service *Following) Save(following *model.Following, note string) error {
// RULE: Hacky way to make the URL valid. This should
// probably be handled in the schema URL validation.
switch {
case strings.HasPrefix(following.URL, "@"):
case strings.HasPrefix(following.URL, "https://"):
case strings.HasPrefix(following.URL, "http://"):
default:
Expand Down

0 comments on commit 11f6dbd

Please sign in to comment.