bug fix
This commit is contained in:
parent
d6b0affcb4
commit
cd3cde3423
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user