diff options
Diffstat (limited to 'src/main/java/com/juick/ActivityPubManager.java')
-rw-r--r-- | src/main/java/com/juick/ActivityPubManager.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/com/juick/ActivityPubManager.java b/src/main/java/com/juick/ActivityPubManager.java index c9b9822a..6837a416 100644 --- a/src/main/java/com/juick/ActivityPubManager.java +++ b/src/main/java/com/juick/ActivityPubManager.java @@ -191,10 +191,14 @@ public class ActivityPubManager implements ActivityListener, NotificationListene Actor me = conversionService.convert(user, Actor.class); Update update = new Update(); var note = makeNote(object); + var now = Instant.now(); + note.setUpdated(now); update.setId(note.getId() + "#update"); update.setActor(me.getId()); update.setObject(note); - update.setPublished(Instant.now()); + update.setPublished(now); + update.setTo(note.getTo()); + update.setCc(note.getCc()); logger.info("{} sends note update to followers", me.getId()); activityToFollowers(user, me, update); } @@ -274,6 +278,8 @@ public class ActivityPubManager implements ActivityListener, NotificationListene create.setActor(me.getId()); create.setPublished(note.getPublished()); create.setObject(note); + create.setTo(note.getTo()); + create.setCc(note.getCc()); try { activityPubService.post(me, to, create); } catch (InterruptedException | IOException | NoSuchAlgorithmException e) { |