fix: update user URL handling in ThoughtsObjectHandler to use user_id
This commit is contained in:
@@ -53,8 +53,8 @@ impl ApObjectHandler for ThoughtsObjectHandler {
|
|||||||
.into_iter()
|
.into_iter()
|
||||||
.map(|e| {
|
.map(|e| {
|
||||||
let note_url = self.urls.thought_url(e.thought.id.as_uuid());
|
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 actor_url = self.urls.user_url(&user_id.to_string());
|
||||||
let followers = self.urls.user_followers(e.author_username.as_str());
|
let followers = self.urls.user_followers(&user_id.to_string());
|
||||||
let in_reply_to = e
|
let in_reply_to = e
|
||||||
.thought
|
.thought
|
||||||
.in_reply_to_id
|
.in_reply_to_id
|
||||||
@@ -91,8 +91,8 @@ impl ApObjectHandler for ThoughtsObjectHandler {
|
|||||||
.map(|e| {
|
.map(|e| {
|
||||||
let created_at = e.thought.created_at;
|
let created_at = e.thought.created_at;
|
||||||
let note_url = self.urls.thought_url(e.thought.id.as_uuid());
|
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 actor_url = self.urls.user_url(&user_id.to_string());
|
||||||
let followers = self.urls.user_followers(e.author_username.as_str());
|
let followers = self.urls.user_followers(&user_id.to_string());
|
||||||
let in_reply_to = e
|
let in_reply_to = e
|
||||||
.thought
|
.thought
|
||||||
.in_reply_to_id
|
.in_reply_to_id
|
||||||
|
|||||||
Reference in New Issue
Block a user