From 30f3e2c462ce5022cd3729ca66fc5d0820a3c153 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Thu, 2 Dec 2021 03:33:06 +0000 Subject: [PATCH] [FEEDS][Home] Fix bug nickname is not unique, but it is for local users --- src/Controller/Feeds.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controller/Feeds.php b/src/Controller/Feeds.php index 06db69988a..d4bc88172f 100644 --- a/src/Controller/Feeds.php +++ b/src/Controller/Feeds.php @@ -70,7 +70,7 @@ class Feeds extends Controller public function home(Request $request, string $nickname) { try { - $target = DB::findOneBy('actor', ['nickname' => $nickname]); + $target = DB::findOneBy('actor', ['nickname' => $nickname, 'is_local' => true]); } catch (NotFoundException) { throw new ClientException(_m('User {nickname} doesn\'t exist', ['{nickname}' => $nickname])); }