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
1 changed files with 1 additions and 1 deletions

View File

@ -797,7 +797,7 @@ def get_existing_votes(actor, %{data: %{"id" => id}}) 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)
), ),