aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/com/juick/service/SignatureService.java2
-rw-r--r--src/main/java/com/juick/www/api/apple/AppSiteAssociation.java7
-rw-r--r--vnext/server/durov.js2
3 files changed, 4 insertions, 7 deletions
diff --git a/src/main/java/com/juick/service/SignatureService.java b/src/main/java/com/juick/service/SignatureService.java
index 12d9d67b..1bd8840b 100644
--- a/src/main/java/com/juick/service/SignatureService.java
+++ b/src/main/java/com/juick/service/SignatureService.java
@@ -26,7 +26,7 @@ import java.util.*;
public class SignatureService {
- private KeystoreManager keystoreManager;
+ private final KeystoreManager keystoreManager;
public SignatureService(KeystoreManager keystoreManager) {
this.keystoreManager = keystoreManager;
diff --git a/src/main/java/com/juick/www/api/apple/AppSiteAssociation.java b/src/main/java/com/juick/www/api/apple/AppSiteAssociation.java
index 19839254..4e7f3113 100644
--- a/src/main/java/com/juick/www/api/apple/AppSiteAssociation.java
+++ b/src/main/java/com/juick/www/api/apple/AppSiteAssociation.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2008-2022, Juick
+ * Copyright (C) 2008-2023, Juick
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
@@ -22,11 +22,8 @@ import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
-import java.util.Collections;
import java.util.List;
-import com.fasterxml.jackson.annotation.JsonProperty;
-
@RestController
public class AppSiteAssociation {
@Value("${ios_app_id:}")
@@ -35,7 +32,7 @@ public class AppSiteAssociation {
@GetMapping("/.well-known/apple-app-site-association")
@ResponseBody
public SiteAssociations appSiteAssociations() {
- WebCredentials webCredentials = new WebCredentials(Collections.singletonList(appId));
+ WebCredentials webCredentials = new WebCredentials(List.of(appId));
return new SiteAssociations(webCredentials);
}
diff --git a/vnext/server/durov.js b/vnext/server/durov.js
index 0f70133d..acd89158 100644
--- a/vnext/server/durov.js
+++ b/vnext/server/durov.js
@@ -4,7 +4,7 @@ var log = debug('durov');
import config from 'config';
-import { formatMessage, formatQuote, formatTitle } from './common/MessageUtils';
+import { formatQuote, formatTitle } from './common/MessageUtils';
import { format } from '../src/utils/embed';
const sender = new TelegramBot(config.get('service.durov.token'), { polling: true });