Status View: Poll ids are strings.

All ids in mastodon are strings, in general.
This commit is contained in:
lain 2019-07-16 12:47:40 +09:00 committed by Ariadne Conill
parent 5cb37412a2
commit 8123578bf8
2 changed files with 2 additions and 2 deletions

View File

@ -374,7 +374,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,

View File

@ -361,7 +361,7 @@ defmodule Pleroma.Web.MastodonAPI.StatusViewTest do
expected = %{
emojis: [],
expired: false,
id: object.id,
id: to_string(object.id),
multiple: false,
options: [
%{title: "absolutely!", votes_count: 0},