aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/www/controllers
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-18 11:39:05 +0300
committerGravatar Vitaly Takmazov2023-01-18 11:39:05 +0300
commit118464cfdabdad2b943e959e14ceb3012642a301 (patch)
tree6b5af9ecccaabc422478a2739667bc50380bf396 /src/main/java/com/juick/www/controllers
parent1c96e74ad675c3a7d1b6ab2bb01307a94b8d4212 (diff)
Drop unused `useroptions` table
Diffstat (limited to 'src/main/java/com/juick/www/controllers')
-rw-r--r--src/main/java/com/juick/www/controllers/Settings.java15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/main/java/com/juick/www/controllers/Settings.java b/src/main/java/com/juick/www/controllers/Settings.java
index a6d036db..d95b21b7 100644
--- a/src/main/java/com/juick/www/controllers/Settings.java
+++ b/src/main/java/com/juick/www/controllers/Settings.java
@@ -25,11 +25,9 @@ import java.util.stream.IntStream;
import javax.inject.Inject;
-import com.juick.model.NotifyOpts;
import com.juick.model.User;
import com.juick.service.EmailService;
import com.juick.service.StorageService;
-import com.juick.service.SubscriptionService;
import com.juick.service.TagService;
import com.juick.service.TelegramService;
import com.juick.service.UserService;
@@ -57,7 +55,6 @@ import org.springframework.context.ApplicationEventPublisher;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
-import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
@@ -75,8 +72,6 @@ public class Settings {
@Inject
private UserService userService;
@Inject
- private SubscriptionService subscriptionService;
- @Inject
private EmailService emailService;
@Inject
private TelegramService telegramService;
@@ -111,7 +106,6 @@ public class Settings {
model.addAttribute("fbstatus", userService.getFbCrossPostStatus(visitor.getUid()));
model.addAttribute("twitter_name", userService.getTwitterName(visitor.getUid()));
model.addAttribute("telegram_name", userService.getTelegramName(visitor.getUid()));
- model.addAttribute("notify_options", subscriptionService.getNotifyOptions(visitor));
model.addAttribute("userinfo", userService.getUserInfo(visitor));
if (page.equals("auth-email")) {
if (emailService.verifyAddressByCode(visitor.getUid(), code)) {
@@ -151,15 +145,6 @@ public class Settings {
response.addCookie(c);
}
break;
- case "main":
- NotifyOpts opts = new NotifyOpts();
- opts.setRepliesEnabled(StringUtils.isNotEmpty(request.getParameter("jnotify")));
- opts.setSubscriptionsEnabled(StringUtils.isNotEmpty(request.getParameter("subscr_notify")));
- opts.setRecommendationsEnabled(StringUtils.isNotEmpty(request.getParameter("recomm")));
- if (subscriptionService.setNotifyOptions(visitor, opts)) {
- result = "<p>Notification options has been updated</p>";
- }
- break;
case "about":
visitor.setFullName(request.getParameter("fullname"));
visitor.setCountry(request.getParameter("country"));