Merge branch 'fix/poll-performance' into 'develop'

utils: access inReplyTo as an explicit string when fetching poll results`

See merge request pleroma/pleroma!1243
This commit is contained in:
kaniini 2019-06-04 08:55:04 +00:00
commit d977d73b91

View file

@ -797,7 +797,7 @@ defmodule Pleroma.Web.ActivityPub.Utils do
where: fragment("(?)->>'actor' = ?", activity.data, ^actor), where: fragment("(?)->>'actor' = ?", activity.data, ^actor),
where: where:
fragment( fragment(
"(?)->'inReplyTo' = ?", "(?)->>'inReplyTo' = ?",
object.data, object.data,
^to_string(id) ^to_string(id)
), ),