[PLUGIN][Pinboard] Change token to user user ID rather than nickname, to avoid complications with it possibly changing
This commit is contained in:
@@ -79,8 +79,8 @@ class APIv1 extends Controller
|
||||
if (!str_contains($input, ':')) {
|
||||
return null;
|
||||
}
|
||||
[$nickame, $token] = explode(':', $input);
|
||||
return Token::get($nickame, $token)?->getUser();
|
||||
[$id, $token] = explode(':', $input);
|
||||
return Token::get($id, $token)?->getUser();
|
||||
}
|
||||
|
||||
private function deleteNoteAndMaybePin(LocalUser $user, Note $note, ?Pin $pin): void
|
||||
|
Reference in New Issue
Block a user