mirror of
https://framagit.org/framasoft/mobilizon.git
synced 2024-12-22 07:52:43 +00:00
Insert :origin_comment_id too
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
69c24b8b25
commit
6e691640de
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ defmodule Mobilizon.Events.Comment do
|
|||
else: "#{MobilizonWeb.Endpoint.url()}/comments/#{uuid}"
|
||||
|
||||
comment
|
||||
|> cast(attrs, [:url, :text, :actor_id, :event_id, :in_reply_to_comment_id, :attributed_to_id])
|
||||
|> cast(attrs, [:url, :text, :actor_id, :event_id, :in_reply_to_comment_id, :origin_comment_id, :attributed_to_id])
|
||||
|> put_change(:uuid, uuid)
|
||||
|> put_change(:url, url)
|
||||
|> validate_required([:text, :actor_id, :url])
|
||||
|
|
Loading…
Reference in a new issue