Don't require content for items

This commit is contained in:
Shadowfacts 2023-12-03 21:33:17 -05:00
parent 60a2dcd73f
commit fd42f20920
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ defmodule Frenzy.Item do
end
schema "items" do
field :content, :string
field :content, :string, default: ""
field :content_type, :string
field :date, :utc_datetime
field :creator, :string
@ -94,7 +94,7 @@ defmodule Frenzy.Item do
:tombstone,
:feed_id
])
|> validate_required([:guid, :url, :date, :content, :feed_id])
|> validate_required([:guid, :url, :date, :feed_id])
|> unique_constraint([:feed_id, :guid], name: :items_feed_guid_index)
end