aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaelwenn <git.pleroma.social@hacktivis.me>2018-09-12 18:01:11 +0000
committerHaelwenn <git.pleroma.social@hacktivis.me>2018-09-12 18:01:11 +0000
commit90661e20cf91b2b1e95fdee73f2e95aa18c1be65 (patch)
tree04df310540c2363c289f93e1d48d9b11724ab68d
parentda3f93054392447638d4bc558fae0969e6a9bbf9 (diff)
parent85b8590109bc1f1f13ac26fa06b607909ade7bb2 (diff)
downloadpleroma-90661e20cf91b2b1e95fdee73f2e95aa18c1be65.tar.gz
Merge branch 'patch-3' into 'develop'
Add visible_in_picker to status emojis See merge request pleroma/pleroma!342
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
-rw-r--r--test/web/mastodon_api/status_view_test.exs3
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 6962aa54f..cdae2de7a 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -117,7 +117,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
HtmlSanitizeEx.strip_tags(url)
|> MediaProxy.url()
- %{shortcode: name, url: url, static_url: url}
+ %{shortcode: name, url: url, static_url: url, visible_in_picker: false}
end)
%{
diff --git a/test/web/mastodon_api/status_view_test.exs b/test/web/mastodon_api/status_view_test.exs
index 03c798bef..b3b6c5851 100644
--- a/test/web/mastodon_api/status_view_test.exs
+++ b/test/web/mastodon_api/status_view_test.exs
@@ -47,7 +47,8 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
%{
shortcode: "2hu",
url: "corndog.png",
- static_url: "corndog.png"
+ static_url: "corndog.png",
+ visible_in_picker: false
}
]
}