Fix preview not being usable in form data

This commit is contained in:
rinpatch 2019-04-02 23:07:16 +03:00
commit 79cb34a4b0
2 changed files with 2 additions and 2 deletions

View file

@ -180,7 +180,7 @@ defmodule Pleroma.Web.CommonAPI do
object: object,
additional: %{"cc" => cc, "directMessage" => visibility == "direct"}
},
data["preview"] || false
Pleroma.Web.ControllerHelper.truthy_param?(data["preview"]) || false
)
res