mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
Test Note object federation
This commit is contained in:
parent
4ced6744fa
commit
d92764d81a
7 changed files with 131 additions and 4 deletions
|
|
@ -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 });
|
||||
|
||||
|
|
@ -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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue