summaryrefslogtreecommitdiff
path: root/lib/aggiedit/rooms/post.ex
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-05-21 00:57:02 -0700
committerLogan Hunt <loganhunt@simponic.xyz>2022-05-21 00:57:02 -0700
commit1c8ce46697cfa838550378d52f2528c97a44a4b3 (patch)
tree4dda0a9d80cc30130ee0321751851ff20258d97d /lib/aggiedit/rooms/post.ex
parent893af13e3cd54062d51069f40be8269668dd5ec3 (diff)
downloadaggiedit-1c8ce46697cfa838550378d52f2528c97a44a4b3.tar.gz
aggiedit-1c8ce46697cfa838550378d52f2528c97a44a4b3.zip
Fix minor bugs in forms not showing errors and whatnotHEADmaster
Diffstat (limited to 'lib/aggiedit/rooms/post.ex')
-rw-r--r--lib/aggiedit/rooms/post.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/aggiedit/rooms/post.ex b/lib/aggiedit/rooms/post.ex
index e1aa59a..8a14829 100644
--- a/lib/aggiedit/rooms/post.ex
+++ b/lib/aggiedit/rooms/post.ex
@@ -21,7 +21,7 @@ defmodule Aggiedit.Rooms.Post do
def changeset(post, attrs) do
post
|> cast(attrs, [:title, :body, :score])
- |> validate_required([:title, :body])
+ |> validate_required([:title])
end
def change_user(post, user) do