diff options
author | lain <lain@soykaf.club> | 2020-08-26 15:37:30 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-08-26 15:37:30 +0200 |
commit | cfc99fe05c31d5e2140c35f3a2d223635dc07a2f (patch) | |
tree | 18b3ef155fa887b2f01711d138e8edab2f6e507a /lib | |
parent | 797535155051e75227fca611c3486c02c01a98b3 (diff) | |
download | pleroma-cfc99fe05c31d5e2140c35f3a2d223635dc07a2f.tar.gz |
TimelineController: Keys are atoms now.
Closes #2078
Closes #2070
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex b/lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex index 9244316ed..5272790d3 100644 --- a/lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex +++ b/lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex @@ -182,11 +182,10 @@ defmodule Pleroma.Web.MastodonAPI.TimelineController do with %Pleroma.List{title: _title, following: following} <- Pleroma.List.get(id, user) do params = params - |> Map.new(fn {key, value} -> {to_string(key), value} end) - |> Map.put("type", "Create") - |> Map.put("blocking_user", user) - |> Map.put("user", user) - |> Map.put("muting_user", user) + |> Map.put(:type, "Create") + |> Map.put(:blocking_user, user) + |> Map.put(:user, user) + |> Map.put(:muting_user, user) # we must filter the following list for the user to avoid leaking statuses the user # does not actually have permission to see (for more info, peruse security issue #270). |