From fc290dc18fbccdc7981e8fd01edeb617551293c1 Mon Sep 17 00:00:00 2001 From: Gabriel Kaszewski Date: Thu, 28 May 2026 01:51:55 +0200 Subject: [PATCH] fix: update user URL handling in ThoughtsObjectHandler to use user_id --- crates/adapters/activitypub/src/handler.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/adapters/activitypub/src/handler.rs b/crates/adapters/activitypub/src/handler.rs index 27d592d..64e0081 100644 --- a/crates/adapters/activitypub/src/handler.rs +++ b/crates/adapters/activitypub/src/handler.rs @@ -53,8 +53,8 @@ impl ApObjectHandler for ThoughtsObjectHandler { .into_iter() .map(|e| { let note_url = self.urls.thought_url(e.thought.id.as_uuid()); - let actor_url = self.urls.user_url(e.author_username.as_str()); - let followers = self.urls.user_followers(e.author_username.as_str()); + let actor_url = self.urls.user_url(&user_id.to_string()); + let followers = self.urls.user_followers(&user_id.to_string()); let in_reply_to = e .thought .in_reply_to_id @@ -91,8 +91,8 @@ impl ApObjectHandler for ThoughtsObjectHandler { .map(|e| { let created_at = e.thought.created_at; let note_url = self.urls.thought_url(e.thought.id.as_uuid()); - let actor_url = self.urls.user_url(e.author_username.as_str()); - let followers = self.urls.user_followers(e.author_username.as_str()); + let actor_url = self.urls.user_url(&user_id.to_string()); + let followers = self.urls.user_followers(&user_id.to_string()); let in_reply_to = e .thought .in_reply_to_id