Fix incompatible types warning (Elixir 1.11)
This commit is contained in:
parent
d3106c69c8
commit
218a3e61e1
@ -412,7 +412,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
|
|||||||
object =
|
object =
|
||||||
object
|
object
|
||||||
|> Map.merge(Map.take(params, ["to", "cc"]))
|
|> Map.merge(Map.take(params, ["to", "cc"]))
|
||||||
|> Map.put("attributedTo", user.ap_id())
|
|> Map.put("attributedTo", user.ap_id)
|
||||||
|> Transmogrifier.fix_object()
|
|> Transmogrifier.fix_object()
|
||||||
|
|
||||||
ActivityPub.create(%{
|
ActivityPub.create(%{
|
||||||
@ -456,7 +456,7 @@ defmodule Pleroma.Web.ActivityPub.ActivityPubController do
|
|||||||
%{assigns: %{user: %User{nickname: nickname} = user}} = conn,
|
%{assigns: %{user: %User{nickname: nickname} = user}} = conn,
|
||||||
%{"nickname" => nickname} = params
|
%{"nickname" => nickname} = params
|
||||||
) do
|
) do
|
||||||
actor = user.ap_id()
|
actor = user.ap_id
|
||||||
|
|
||||||
params =
|
params =
|
||||||
params
|
params
|
||||||
|
Loading…
Reference in New Issue
Block a user