diff --git a/src/main/java/io/papermc/hangar/controller/VersionsController.java b/src/main/java/io/papermc/hangar/controller/VersionsController.java index 0eb0d9f29..123c8e666 100644 --- a/src/main/java/io/papermc/hangar/controller/VersionsController.java +++ b/src/main/java/io/papermc/hangar/controller/VersionsController.java @@ -273,6 +273,7 @@ public class VersionsController extends HangarController { versionsTable.setReviewState(newState); versionsTable.setReviewerId(userService.getCurrentUser().getId()); versionsTable.setApprovedAt(OffsetDateTime.now()); + versionsTable.setVisibility(Visibility.PUBLIC); versionService.update(versionsTable); userActionLogService.version(request, LoggedActionType.VERSION_REVIEW_STATE_CHANGED.with(VersionContext.of(versionsTable.getProjectId(), versionsTable.getId())), newState.name(), oldState.name()); return new ModelAndView("redirect:" + routeHelper.getRouteUrl("versions.show", author, slug, version));