Rename fake param to preview and make the tests check that the object was not inserted to the db
This commit is contained in:
parent
fe5145eeaa
commit
fdb4357e9b
3 changed files with 15 additions and 8 deletions
|
|
@ -180,7 +180,7 @@ defmodule Pleroma.Web.CommonAPI do
|
|||
object: object,
|
||||
additional: %{"cc" => cc, "directMessage" => visibility == "direct"}
|
||||
},
|
||||
data["fake"] || false
|
||||
data["preview"] || false
|
||||
)
|
||||
|
||||
res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue