mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
add missing source url validation
This commit is contained in:
parent
b97073ee18
commit
799edcb50f
1 changed files with 1 additions and 0 deletions
|
@ -119,6 +119,7 @@ defmodule Philomena.Images.Image do
|
|||
|> change(first_seen_at: now)
|
||||
|> change(attribution)
|
||||
|> validate_length(:description, max: 50_000, count: :bytes)
|
||||
|> validate_format(:source_url, ~r/\Ahttps?:\/\//)
|
||||
end
|
||||
|
||||
def image_changeset(image, attrs) do
|
||||
|
|
Loading…
Reference in a new issue