From c88d200416a0b1ab3aa530a2e56d2cce08957a14 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 18 Apr 2023 13:36:53 +0300 Subject: Minor cleanup --- src/main/java/com/juick/util/MessageUtils.java | 8 -------- src/main/java/com/juick/www/api/activity/Profile.java | 4 ++-- 2 files changed, 2 insertions(+), 10 deletions(-) (limited to 'src/main/java/com') 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()); -- cgit v1.2.3