aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick')
-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());