diff options
author | Vitaly Takmazov | 2019-06-17 11:53:51 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-06-17 11:53:51 +0300 |
commit | fcce353e111604c9c048c75e9759645f08835c43 (patch) | |
tree | f1f63113d95433acf3389773815c975d5e0e5605 /src/main/java/com/juick/server | |
parent | 789884af0ccdd299f943cfbce1afd15f69f6f567 (diff) |
TwitterManager: do not overwrite top event message user
Diffstat (limited to 'src/main/java/com/juick/server')
-rw-r--r-- | src/main/java/com/juick/server/TwitterManager.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/juick/server/TwitterManager.java b/src/main/java/com/juick/server/TwitterManager.java index 613594e6..d799bb17 100644 --- a/src/main/java/com/juick/server/TwitterManager.java +++ b/src/main/java/com/juick/server/TwitterManager.java @@ -22,6 +22,7 @@ import com.juick.service.UserService; import com.juick.service.component.*; import com.juick.service.CrosspostService; import com.juick.util.MessageUtils; +import org.apache.commons.lang3.SerializationUtils; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -118,7 +119,7 @@ public class TwitterManager implements NotificationListener { @Override public void processTopEvent(TopEvent topEvent) { - Message jmsg = topEvent.getMessage(); + Message jmsg = SerializationUtils.clone(topEvent.getMessage()); jmsg.setUser(serviceUser); twitterPost(jmsg); } |