mirror of
https://github.com/imgfloat/server.git
synced 2026-02-05 11:49:25 +00:00
Settings
This commit is contained in:
@@ -68,13 +68,13 @@ public class SystemEnvironmentValidator {
|
||||
|
||||
private void checkString(String value, String name, StringBuilder missing) {
|
||||
if (value != null && StringUtils.hasText(value)) {
|
||||
return
|
||||
return;
|
||||
}
|
||||
missing.append(" - ").append(name).append("\n");
|
||||
}
|
||||
|
||||
private <T extends Number> void checkUnsignedNumeric(T value, String name, StringBuilder missing) {
|
||||
if (value !== null && value.doubleValue() >= 0) {
|
||||
if (value != null && value.doubleValue() >= 0) {
|
||||
return;
|
||||
}
|
||||
missing.append(" - ").append(name).append('\n');
|
||||
|
||||
@@ -289,8 +289,7 @@ public class ChannelDirectoryService {
|
||||
asset.setHidden(request.isHidden());
|
||||
assetRepository.save(asset);
|
||||
AssetPatch patch = AssetPatch.fromVisibility(asset);
|
||||
messagingTemplate.convertAndSend(topicFor(broadcaster),
|
||||
AssetEvent.visibility(broadcaster, patch));
|
||||
messagingTemplate.convertAndSend(topicFor(broadcaster), AssetEvent.visibility(broadcaster, patch));
|
||||
return AssetView.from(normalized, asset);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user