mirror of
https://github.com/philomena-dev/philomena.git
synced 2025-03-28 06:17:46 +01:00
undoing webp messup
This commit is contained in:
parent
c692acf1e9
commit
04a5637fb8
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ defmodule Philomena.Users.User do
|
|||
|> validate_number(:avatar_size, greater_than: 0, less_than_or_equal_to: 300_000)
|
||||
|> validate_number(:avatar_width, greater_than: 0, less_than_or_equal_to: 1000)
|
||||
|> validate_number(:avatar_height, greater_than: 0, less_than_or_equal_to: 1000)
|
||||
|> validate_inclusion(:avatar_mime_type, ~W(image/gif image/jpeg image/png image/webp))
|
||||
|> validate_inclusion(:avatar_mime_type, ~W(image/gif image/jpeg image/png))
|
||||
end
|
||||
|
||||
def remove_avatar_changeset(user) do
|
||||
|
|
Loading…
Add table
Reference in a new issue