Merge pull request '[PR]: fix: always get REACTIONS_NOT_PUBLIC if signed out' (#10445) from naskya/calckey:fix/public-reaction into develop

Reviewed-on: https://codeberg.org/calckey/calckey/pulls/10445
This commit is contained in:
Kainoa Kanter 2023-07-09 16:23:45 +00:00
commit 8a4fed9d60

View file

@ -49,7 +49,7 @@ export const paramDef = {
export default define(meta, paramDef, async (ps, me) => {
const profile = await UserProfiles.findOneByOrFail({ userId: ps.userId });
if (me == null || (me.id !== ps.userId && !profile.publicReactions)) {
if (me.id !== ps.userId && !profile.publicReactions) {
throw new ApiError(meta.errors.reactionsNotPublic);
}