Skip to content
Snippets Groups Projects
Unverified Commit b21064ff authored by hayabusa's avatar hayabusa Committed by GitHub
Browse files

リアクション履歴が公開なら、ログインしていなくても表示できるように (#9728)

parent 1959cb46
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
super(meta, paramDef, async (ps, me) => {
const profile = await this.userProfilesRepository.findOneByOrFail({ userId: ps.userId });
if (me == null || (me.id !== ps.userId && !profile.publicReactions)) {
if ((me == null || me.id !== ps.userId) && !profile.publicReactions) {
throw new ApiError(meta.errors.reactionsNotPublic);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment