Skip to content

Commit bc9cac4

Browse files
authored
Fixed author's fallback URL (#889)
no issue - This was using the post AP ID instead of the author AP ID - This bug has been silently there in the codebase - coderabbitai found this issue in one of my refactoring PRs yesterday. Details [here](#881 (comment))
1 parent 9bbce10 commit bc9cac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/post/post.repository.knex.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ export class KnexPostRepository {
10421042
username: row.username,
10431043
name: row.name,
10441044
bio: row.bio,
1045-
url: parseURL(row.author_url) || new URL(row.ap_id),
1045+
url: parseURL(row.author_url) || new URL(row.author_ap_id),
10461046
avatarUrl: parseURL(row.avatar_url),
10471047
bannerImageUrl: parseURL(row.banner_image_url),
10481048
apId: new URL(row.author_ap_id),

0 commit comments

Comments
 (0)