aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-06-30 00:22:26 +0300
committerGravatar Vitaly Takmazov2022-06-30 00:22:26 +0300
commit2d4f5745d678d8708b6bf673b5987386cc45b901 (patch)
tree0650eab62a8091b704753d6daaeb3cf52cad8202 /src
parente340ea8366159610fd9d5b7590874b750a797126 (diff)
ActivityPub: fix Actor type casting
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/ActivityPubManager.java2
1 files changed, 1 insertions, 1 deletions
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<Context> 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<String> cc = new ArrayList<>(note.getCc());
cc.add(person.getId());