Fix noscrape publishing and pulling, added header

This commit is contained in:
Michael 2021-06-17 11:23:32 +00:00
parent 5419d1d426
commit fe07dc828b
16 changed files with 36 additions and 28 deletions

View file

@ -50,7 +50,7 @@ class NoScrape extends BaseModule
System::jsonError(403, 'Authentication required');
}
$profile = Profile::getByNickname($which, local_user());
$profile = Profile::getByNickname($which);
if (empty($profile['uid'])) {
System::jsonError(404, 'Profile not found');