Skip to content

Commit 69b56bd

Browse files
committed
fixed #198
1 parent 5be8669 commit 69b56bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/Follower.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function attachFollowStatus($followables, callable $resolver = null)
153153
$item = $followed->where('followable_id', $followable->getKey())
154154
->where('followable_type', $followable->getMorphClass())
155155
->first();
156-
$followable->setAttribute('has_followed', !!$item);
156+
$followable->setAttribute('has_followed', (bool) $item);
157157
$followable->setAttribute('followed_at', $item ? $item->created_at : null);
158158
$followable->setAttribute('follow_accepted_at', $item ? $item->accepted_at : null);
159159
}

0 commit comments

Comments
 (0)