mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
validate user link format (#93)
This commit is contained in:
parent
fb08f555f4
commit
3d16c4d4c0
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ defmodule Philomena.UserLinks.UserLink do
|
||||||
|> put_assoc(:tag, tag)
|
|> put_assoc(:tag, tag)
|
||||||
|> put_assoc(:user, user)
|
|> put_assoc(:user, user)
|
||||||
|> validate_required([:user, :uri, :public])
|
|> validate_required([:user, :uri, :public])
|
||||||
|
|> validate_format(:uri, ~r|\Ahttps?://|)
|
||||||
|> parse_uri()
|
|> parse_uri()
|
||||||
|> put_verification_code()
|
|> put_verification_code()
|
||||||
|> put_next_check_at()
|
|> put_next_check_at()
|
||||||
|
|
Loading…
Reference in a new issue