Rename fake param to preview and make the tests check that the object was not inserted to the db

This commit is contained in:
rinpatch 2019-04-02 14:31:18 +03:00
commit fdb4357e9b
3 changed files with 15 additions and 8 deletions

View file

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