This commit is contained in:
Ghostie 2025-01-02 21:50:07 -05:00
parent d6b0affcb4
commit cd3cde3423

View File

@ -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;
}