MastoAPI: Include CW.
This commit is contained in:
parent
04217f52c9
commit
44295dd49a
@ -93,7 +93,7 @@ def render("status.json", %{activity: %{data: %{"object" => object}} = activity}
|
|||||||
favourited: !!favorited,
|
favourited: !!favorited,
|
||||||
muted: false,
|
muted: false,
|
||||||
sensitive: sensitive,
|
sensitive: sensitive,
|
||||||
spoiler_text: "",
|
spoiler_text: object["summary"] || "",
|
||||||
visibility: "public",
|
visibility: "public",
|
||||||
media_attachments: attachments,
|
media_attachments: attachments,
|
||||||
mentions: mentions,
|
mentions: mentions,
|
||||||
|
@ -26,6 +26,7 @@ def note_factory do
|
|||||||
"likes" => [],
|
"likes" => [],
|
||||||
"like_count" => 0,
|
"like_count" => 0,
|
||||||
"context" => "2hu",
|
"context" => "2hu",
|
||||||
|
"summary" => "2hu",
|
||||||
"tag" => ["2hu"],
|
"tag" => ["2hu"],
|
||||||
"emoji" => %{
|
"emoji" => %{
|
||||||
"2hu" => "corndog.png"
|
"2hu" => "corndog.png"
|
||||||
|
@ -32,7 +32,7 @@ test "a note activity" do
|
|||||||
favourited: false,
|
favourited: false,
|
||||||
muted: false,
|
muted: false,
|
||||||
sensitive: false,
|
sensitive: false,
|
||||||
spoiler_text: "",
|
spoiler_text: note.data["object"]["summary"],
|
||||||
visibility: "public",
|
visibility: "public",
|
||||||
media_attachments: [],
|
media_attachments: [],
|
||||||
mentions: [],
|
mentions: [],
|
||||||
|
Loading…
Reference in New Issue
Block a user