diff --git a/src/Lib/Activity.php b/src/Lib/Activity.php index 7a6942fc8..10077f04d 100644 --- a/src/Lib/Activity.php +++ b/src/Lib/Activity.php @@ -5190,7 +5190,7 @@ class Activity $actorId = new ActorId($url); if ($actorId->getType() === ActorId::ACTORID_TYPE_DIDKEY) { $ekey = str_replace('did:key:', '', $actorId->getId()); - $query = q("select * from xchan where epubkey = '%s'", + $query = q("select * from xchan where xchan_epubkey = '%s'", dbesc($ekey) ); if ($query) {