Test Note object federation

This commit is contained in:
Jesse Wierzbinski 2023-09-13 17:39:11 -10:00
parent 4ced6744fa
commit d92764d81a
No known key found for this signature in database
GPG key ID: F9A1E418934E40B0
7 changed files with 131 additions and 4 deletions

View file

@ -11,7 +11,7 @@ export default async (
req: Request,
matchedRoute: MatchedRoute
): Promise<Response> => {
const username = matchedRoute.params.username;
const username = matchedRoute.params.username.split("@")[0];
const user = await User.findOneBy({ username });

View file

@ -12,7 +12,7 @@ export default async (
req: Request,
matchedRoute: MatchedRoute
): Promise<Response> => {
const username = matchedRoute.params.username;
const username = matchedRoute.params.username.split("@")[0];
const page = Boolean(matchedRoute.query.page || "false");
const min_id = matchedRoute.query.min_id || false;
const max_id = matchedRoute.query.max_id || false;