utils: access inReplyTo as an explicit string when fetching poll results`
authorWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Jun 2019 08:45:03 +0000 (08:45 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Tue, 4 Jun 2019 08:45:03 +0000 (08:45 +0000)
lib/pleroma/web/activity_pub/utils.ex

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