mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-12-22 17:27:18 +00:00
MastoAPI: Include CW.
This commit is contained in:
parent
04217f52c9
commit
44295dd49a
|
@ -93,7 +93,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
|
|||
favourited: !!favorited,
|
||||
muted: false,
|
||||
sensitive: sensitive,
|
||||
spoiler_text: "",
|
||||
spoiler_text: object["summary"] || "",
|
||||
visibility: "public",
|
||||
media_attachments: attachments,
|
||||
mentions: mentions,
|
||||
|
|
|
@ -26,6 +26,7 @@ defmodule Pleroma.Factory do
|
|||
"likes" => [],
|
||||
"like_count" => 0,
|
||||
"context" => "2hu",
|
||||
"summary" => "2hu",
|
||||
"tag" => ["2hu"],
|
||||
"emoji" => %{
|
||||
"2hu" => "corndog.png"
|
||||
|
|
|
@ -32,7 +32,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
|
|||
favourited: false,
|
||||
muted: false,
|
||||
sensitive: false,
|
||||
spoiler_text: "",
|
||||
spoiler_text: note.data["object"]["summary"],
|
||||
visibility: "public",
|
||||
media_attachments: [],
|
||||
mentions: [],
|
||||
|
|
Loading…
Reference in a new issue