aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-07-16 06:06:22 +0000
committerrinpatch <rinpatch@sdf.org>2019-07-16 06:06:22 +0000
commit996fd58ac45447171d1d5049f20f847c9c1b0fc2 (patch)
tree80267a851d4ba391eec87fd94d7c51ff857ac3aa /lib
parent9f987dd017f352d63c7441e2cce301aea07082a8 (diff)
parent7a24def4731cf773970c87b340d99d4ec3cd8906 (diff)
downloadpleroma-996fd58ac45447171d1d5049f20f847c9c1b0fc2.tar.gz
Merge branch 'bugfix/poll-id-as-string' into 'develop'
Status View: Poll ids are strings. See merge request pleroma/pleroma!1430
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/mastodon_api/views/status_view.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/web/mastodon_api/views/status_view.ex b/lib/pleroma/web/mastodon_api/views/status_view.ex
index 06a7251d8..de9425959 100644
--- a/lib/pleroma/web/mastodon_api/views/status_view.ex
+++ b/lib/pleroma/web/mastodon_api/views/status_view.ex
@@ -382,7 +382,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusView do
%{
# Mastodon uses separate ids for polls, but an object can't have
# more than one poll embedded so object id is fine
- id: object.id,
+ id: to_string(object.id),
expires_at: Utils.to_masto_date(end_time),
expired: expired,
multiple: multiple,