forked from AkkomaGang/akkoma
Merge branch 'patch-3' into 'develop'
Add visible_in_picker to status emojis See merge request pleroma/pleroma!342
This commit is contained in:
commit
90661e20cf
2 changed files with 3 additions and 2 deletions
|
@ -117,7 +117,7 @@ def render("status.json", %{activity: %{data: %{"object" => object}} = activity}
|
||||||
HtmlSanitizeEx.strip_tags(url)
|
HtmlSanitizeEx.strip_tags(url)
|
||||||
|> MediaProxy.url()
|
|> MediaProxy.url()
|
||||||
|
|
||||||
%{shortcode: name, url: url, static_url: url}
|
%{shortcode: name, url: url, static_url: url, visible_in_picker: false}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
%{
|
%{
|
||||||
|
|
|
@ -47,7 +47,8 @@ test "a note activity" do
|
||||||
%{
|
%{
|
||||||
shortcode: "2hu",
|
shortcode: "2hu",
|
||||||
url: "corndog.png",
|
url: "corndog.png",
|
||||||
static_url: "corndog.png"
|
static_url: "corndog.png",
|
||||||
|
visible_in_picker: false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue