diff options
author | Vitaly Takmazov | 2018-10-24 00:44:56 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-24 00:44:56 +0300 |
commit | aa4dab444166f530adcd86003f802350db44b0b1 (patch) | |
tree | 2a4ec9716ea56000ba9bf078a8c4fa574e890788 /juick-server/src/main/java | |
parent | ee7070c3330c5f5a3d44a37c7758dcf534d5a8ef (diff) |
ActivityPub: Add @ to mentioned nick
Diffstat (limited to 'juick-server/src/main/java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/ActivityPubManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java index a206c47f..14ff7419 100644 --- a/juick-server/src/main/java/com/juick/server/ActivityPubManager.java +++ b/juick-server/src/main/java/com/juick/server/ActivityPubManager.java @@ -229,7 +229,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene Optional<Context> personContext = signatureManager.getContext(URI.create(activity.getAttributedTo())); if (personContext.isPresent()) { Person person = (Person) personContext.get(); - note.getTags().add(new Mention(person.getUrl(), person.getPreferredUsername())); + note.getTags().add(new Mention(person.getUrl(), "@" + person.getPreferredUsername())); } } } |