aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-09-24 12:58:40 +0300
committerGravatar Vitaly Takmazov2019-09-24 12:58:40 +0300
commit253b0b4e9e1f3bfa3e0d4843fec510e6401e445f (patch)
tree62e6867773e500b3b07ec6bda83ab2eae184c0dc /src/main/java
parent4eb8f560849cb0d3a92d8999e07d68c27ffdec9d (diff)
Fix service activity
Diffstat (limited to 'src/main/java')
-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);