[FEEDS][Home] Fix bug nickname is not unique, but it is for local users
This commit is contained in:
parent
d64bd17422
commit
30f3e2c462
@ -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]));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user