projects
/
akkoma
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dde5ad9
)
Fix specs.
author
lain
<lain@soykaf.club>
Sun, 20 May 2018 17:22:26 +0000
(19:22 +0200)
committer
lain
<lain@soykaf.club>
Sun, 20 May 2018 17:22:26 +0000
(19:22 +0200)
lib/pleroma/web/twitter_api/representers/activity_representer.ex
patch
|
blob
|
history
diff --git
a/lib/pleroma/web/twitter_api/representers/activity_representer.ex
b/lib/pleroma/web/twitter_api/representers/activity_representer.ex
index 9a4954de87dda94136aa7127a5645e20ba0920fa..c2e1f07a5a4e6b823360860a48c7d9eb847d50c8 100644
(file)
--- a/
lib/pleroma/web/twitter_api/representers/activity_representer.ex
+++ b/
lib/pleroma/web/twitter_api/representers/activity_representer.ex
@@
-197,7
+197,8
@@
defmodule Pleroma.Web.TwitterAPI.Representers.ActivityRepresenter do
"external_url" => object["external_url"] || object["id"],
"tags" => tags,
"activity_type" => "post",
- "possibly_sensitive" => possibly_sensitive
+ "possibly_sensitive" => possibly_sensitive,
+ "visibility" => Pleroma.Web.MastodonAPI.StatusView.get_visibility(object)
}
end