aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/juick/server/api/SystemActivity.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/api/SystemActivity.java b/src/main/java/com/juick/server/api/SystemActivity.java
index 162374d1..5120049a 100644
--- a/src/main/java/com/juick/server/api/SystemActivity.java
+++ b/src/main/java/com/juick/server/api/SystemActivity.java
@@ -3,6 +3,7 @@ package com.juick.server.api;
import com.juick.Message;
import com.juick.User;
+import java.util.Collections;
import java.util.List;
public class SystemActivity {
@@ -28,8 +29,10 @@ public class SystemActivity {
var read = new SystemActivity();
read.setType(ActivityType.message);
read.setFrom(from);
+ read.setTo(Collections.emptyList());
var msg = new Message();
msg.setMid(message.getMid());
+ msg.setUser(from);
msg.setService(true);
msg.setUnread(false);
read.setMessage(msg);