aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-04-18 13:36:53 +0300
committerGravatar Vitaly Takmazov2023-04-18 13:36:53 +0300
commitc88d200416a0b1ab3aa530a2e56d2cce08957a14 (patch)
treed38851852af26c8d3092621976d7dce2217fb0d2
parent66801ba91a51c9b7df6d85136d677350d2495b86 (diff)
Minor cleanup
-rw-r--r--src/main/java/com/juick/util/MessageUtils.java8
-rw-r--r--src/main/java/com/juick/www/api/activity/Profile.java4
2 files changed, 2 insertions, 10 deletions
diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java
index a04dc24f..6a325c0c 100644
--- a/src/main/java/com/juick/util/MessageUtils.java
+++ b/src/main/java/com/juick/util/MessageUtils.java
@@ -328,14 +328,6 @@ public class MessageUtils {
if (msg.FriendsOnly)
builder.append(" *friends");
-
- if (msg.getPrivacy() == -2)
- builder.append(" *private");
- else if (msg.getPrivacy() == -1)
- builder.append(" *friends");
- else if (msg.getPrivacy() == 2)
- builder.append(" *public");
-
if (msg.ReadOnly)
builder.append(" *readonly");
}
diff --git a/src/main/java/com/juick/www/api/activity/Profile.java b/src/main/java/com/juick/www/api/activity/Profile.java
index 68ea66ae..a8ff003f 100644
--- a/src/main/java/com/juick/www/api/activity/Profile.java
+++ b/src/main/java/com/juick/www/api/activity/Profile.java
@@ -385,7 +385,7 @@ public class Profile {
if (activity instanceof Update) {
if (activity.getObject() instanceof Person
&& activity.getActor().equals(activity.getObject().getId())) {
- logger.info("{} update they profile");
+ logger.info("{} update their profile", activity.getActor());
return new ResponseEntity<>(CommandResult.fromString("Update accepted"), HttpStatus.ACCEPTED);
}
if (activity.getObject() instanceof Note) {
@@ -395,7 +395,7 @@ public class Profile {
Message reply = messagesService.getReplyByUri(note.getId());
if (reply != null) {
if (messagesService.updateMessage(reply.getMid(), reply.getRid(), formatNote(note), true)) {
- logger.info("{} update they message {}", activity.getActor(), note.getId());
+ logger.info("{} update their message {}", activity.getActor(), note.getId());
return new ResponseEntity<>(HttpStatus.ACCEPTED);
}
logger.warn("Unable to update {}", note.getId());