@@ -44,3 +44,9 @@ Has these additional fields under the `pleroma` object:
Has these additional fields under the `pleroma` object:
-`is_seen`: true if the notification was read by the user
## POST `/api/v1/statuses`
Additional parameters can be added to the JSON body:
-`preview`: boolean, if set to `true` the post won't be actually posted, but the status entitiy would still be rendered back. This could be useful for previewing rich text/custom emoji, for example.
@@ -143,6 +143,55 @@ test "posting a sensitive status", %{conn: conn} do
assertActivity.get_by_id(id)
end
test"posting a fake status",%{conn:conn}do
user=insert(:user)
real_conn=
conn
|>assign(:user,user)
|>post("/api/v1/statuses",%{
"status"=>
"\"Tenshi Eating a Corndog\" is a much discussed concept on /jp/. The significance of it is disputed, so I will focus on one core concept: the symbolism behind it"
"\"Tenshi Eating a Corndog\" is a much discussed concept on /jp/. The significance of it is disputed, so I will focus on one core concept: the symbolism behind it",