diff options
author | lain <lain@soykaf.club> | 2019-03-11 13:48:27 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2019-03-11 13:48:27 +0100 |
commit | 4811eefa6e4cbdaa92fc2e003037506539e493b1 (patch) | |
tree | 4b01e3d59ef9878a92b069d327f5b9c049b8f422 /lib | |
parent | 8e6b8506105a304bca9159bfcd5cc7cb9516e387 (diff) | |
download | pleroma-4811eefa6e4cbdaa92fc2e003037506539e493b1.tar.gz |
MastoAPI StatusView: Add locality indicator.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/web/mastodon_api/views/status_view.ex | 10 |
1 files changed, 8 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 3468c0e1c..bf3aaf025 100644 --- a/lib/pleroma/web/mastodon_api/views/status_view.ex +++ b/lib/pleroma/web/mastodon_api/views/status_view.ex @@ -102,7 +102,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do website: nil }, language: nil, - emojis: [] + emojis: [], + pleroma: %{ + local: activity.local + } } end @@ -181,7 +184,10 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do website: nil }, language: nil, - emojis: build_emojis(activity.data["object"]["emoji"]) + emojis: build_emojis(activity.data["object"]["emoji"]), + pleroma: %{ + local: activity.local + } } end |