回答編集履歴
1
修正
test
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
> testuser1でログインし、testuser2をフォローしました。
|
2
2
|
> 投稿一覧にはtestuser1の投稿とtestuser3の投稿が表示されてしまいました。
|
3
3
|
|
4
|
-
ということは、`$follow_user_ids = $user->follow_users->pluck('id');` の値が、`testuser3` の id
|
4
|
+
ということは、`$follow_user_ids = $user->follow_users->pluck('id');` の値が、`testuser3` の id を返しているということは推測できますよね?
|
5
5
|
|
6
6
|
となると、`User::follow_users()` のリレーションの実装が間違っているんじゃないですか?
|
7
7
|
|