This makes tests behave consistently and makes the API more
predictable. Furthermore, this could reduce the requirement
for client-side sorting in the modal.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This allows us to communicate to the clients that everybody should update their aliases.
This route allows us to get all aliases of a note
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This allows us to communicate to the clients that everybody should update their note permissions.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This route should be used to get only the permissions of a specific note.
It's useful when we update the permissions and only want to get an update for that.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
Previously, the method to generate the fallback image returned the
image given by the auth provider, if existing. It now includes a
new flag to foce the generation of a fallback image.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This function actually takes an error and builds the notification.
This new name makes the usage of the function more clear.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
oxfmt is a project from the OXC toolchain, similar to OXLint.
It is based on the Rust-built 'oxidation compiler' and has
increased performance compared to Prettier which is built
in plain JS.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This warning spams the output and currently is not critical to us.
Setting `isolatedModules: true` in the tsconfig.json as suggested breaks
the module resolution and imports.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This logger statement contains the complete noteConfig.error object which includes
circular object dependencies. Since Node 24 has a rewritten implementation of
console.log that does not silently ignore such errors anymore, we have to remove
this statement. It probably was a leftover from debugging anyways, since the proper
error message is constructed later on and then displayed.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
The updated @tsconfig/node24 package uses ES2024 as default feature set for
ECMAScript. Since ts-jest and probably also @typescript-eslint/parser do not
support ES2024 yet, this is a simple fix. We didn't use any ES2024 features
anyways.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
We can just create a big enough ArrayBuffer and create a Uint8Array view
on this buffer to save the data into.
Signed-off-by: Philip Molares <philip.molares@udo.edu>
The docker build seemed to fail because the tsconfig
for the backend pointed to an out-of-date path, that
didn't exist anymore. Furthermore, the --no-cache
directive was deprecated and should be replaced by
explicitly stating the caching mode for local and
remote cache (empty policy means no caching).
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
The build script for the backend relied on some bash specifics.
Since bash is not available in alpine based node docker images,
building failed. This commit replaces bash functions with the
native POSIX equivalents.
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This field should allow the user to allow pages to be found
easily on the public explore page without exposing all pages directly.
Co-authored-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
Signed-off-by: Philip Molares <philip.molares@udo.edu>