diff options
author | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2021-01-12 09:30:22 +0100 |
---|---|---|
committer | Haelwenn (lanodan) Monnier <contact@hacktivis.me> | 2021-04-01 14:18:41 +0200 |
commit | 37a7f521fd4778cde48f1b003ad9695e6ea45d1f (patch) | |
tree | 43f6b9d7b311b2a3974431869e6b51f20434eea4 /lib/pleroma/web/common_api.ex | |
parent | 5ae27c8451a7012b43ef9113713132158701364b (diff) | |
download | pleroma-37a7f521fd4778cde48f1b003ad9695e6ea45d1f.tar.gz |
Insert string-hashtags in Pipeline
Cannot be done in Ecto schemas because only one type is allowed in arrays, and
needs to be done before the MRFs.
Diffstat (limited to 'lib/pleroma/web/common_api.ex')
-rw-r--r-- | lib/pleroma/web/common_api.ex | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/pleroma/web/common_api.ex b/lib/pleroma/web/common_api.ex index b003e30c7..895baebc9 100644 --- a/lib/pleroma/web/common_api.ex +++ b/lib/pleroma/web/common_api.ex @@ -228,17 +228,7 @@ defmodule Pleroma.Web.CommonAPI do {:find_object, _} -> {:error, :not_found} - {:common_pipeline, - { - :error, - { - :validate_object, - { - :error, - changeset - } - } - }} = e -> + {:common_pipeline, {:error, {:validate, {:error, changeset}}}} = e -> if {:object, {"already liked by this actor", []}} in changeset.errors do {:ok, :already_liked} else |