mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
fix reactions_not_public condition
This commit is contained in:
parent
141ab4a96b
commit
dd434a739b
@ -49,7 +49,7 @@ export const paramDef = {
|
|||||||
export default define(meta, paramDef, async (ps, me) => {
|
export default define(meta, paramDef, async (ps, me) => {
|
||||||
const profile = await UserProfiles.findOneByOrFail({ userId: ps.userId });
|
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);
|
throw new ApiError(meta.errors.reactionsNotPublic);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user