From 2d4f5745d678d8708b6bf673b5987386cc45b901 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 30 Jun 2022 00:22:26 +0300 Subject: ActivityPub: fix Actor type casting --- src/main/java/com/juick/ActivityPubManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') diff --git a/src/main/java/com/juick/ActivityPubManager.java b/src/main/java/com/juick/ActivityPubManager.java index bae8a8e8..613de046 100644 --- a/src/main/java/com/juick/ActivityPubManager.java +++ b/src/main/java/com/juick/ActivityPubManager.java @@ -377,7 +377,7 @@ public class ActivityPubManager implements ActivityListener, NotificationListene // @user@server.tld -> user@server.tld Optional personContext = signatureManager.discoverPerson(m.substring(1)); if (personContext.isPresent()) { - Person person = (Person) personContext.get(); + Actor person = (Actor) personContext.get(); note.getTags().add(new Mention(person.getUrl(), person.getPreferredUsername())); List cc = new ArrayList<>(note.getCc()); cc.add(person.getId()); -- cgit v1.2.3