From aa4dab444166f530adcd86003f802350db44b0b1 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 24 Oct 2018 00:44:56 +0300 Subject: ActivityPub: Add @ to mentioned nick --- juick-server/src/main/java/com/juick/server/ActivityPubManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main') 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 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())); } } } -- cgit v1.2.3