mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(federation): 🐛 Fix objects endpoint not returning correctly formatted element
This commit is contained in:
parent
534a6136c1
commit
ce082f8e6a
1 changed files with 2 additions and 2 deletions
|
|
@ -45,9 +45,9 @@ export default apiRoute(async (req, matchedRoute) => {
|
|||
apiObject = foundObject ? likeToLysand(foundObject) : null;
|
||||
}
|
||||
|
||||
if (!foundObject) {
|
||||
if (!foundObject || !apiObject) {
|
||||
return errorResponse("Object not found", 404);
|
||||
}
|
||||
|
||||
return jsonResponse(foundObject);
|
||||
return jsonResponse(apiObject);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue