Skip to content
Snippets Groups Projects
Verified Commit de956b9e authored by Haelwenn's avatar Haelwenn
Browse files

Web.MastodonAPI.MastodonAPIController: tag+any bookmark params in a array and flatten it

parent 22f2687f
Branches
No related tags found
No related merge requests found
......@@ -541,7 +541,8 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
local_only = params["local"] in [true, "True", "true", "1"]
tags =
([params["tag"]] ++ (params["any"] || []))
[params["tag"], params["any"]]
|> List.flatten()
|> Enum.uniq()
|> Enum.filter(& &1)
|> Enum.map(&String.downcase(&1))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment