diff --git a/app/Models/Actor.php b/app/Models/Actor.php index 54adcf2..b01a29e 100644 --- a/app/Models/Actor.php +++ b/app/Models/Actor.php @@ -71,8 +71,8 @@ class Actor extends Model public function friends_with (Actor $actor) { - $following = Activity::where ("actor", $this->actor_id)->where ("type", "Follow")->where ("object", $actor->actor_id)->first (); - $followers = Activity::where ("actor", $actor->actor_id)->where ("type", "Follow")->where ("object", $this->actor_id)->first (); + $following = Activity::where ("actor", $this->actor_id)->where ("type", "Follow")->where ("object", '"' . $actor->actor_id . '"')->first (); + $followers = Activity::where ("actor", $actor->actor_id)->where ("type", "Follow")->where ("object", '"' . $this->actor_id . '"')->first (); return $following && $followers; }