re-render threads with user handle of reply.
This commit is contained in:
1 parent
1ceb4b1583
commit
f8380db665
515 files changed
+2042
-1496
No files matched your search
@@ -106,9 +106,10 @@ def _post_block(
|
||||
media_by_post: dict[str, tuple[str, ...]] | None,
|
||||
branch_links: list[str] | None = None,
|
||||
) -> str:
|
||||
"""Render one post body (``**N/**`` + text + media embeds + branch links)."""
|
||||
parts = [f"**{n}/**", "", post.text]
|
||||
parts = [f"**{n}/**", "", post.text]
|
||||
"""Render one post body (``**N/** @handle`` + text + media + branch links)."""
|
||||
if not post.handle:
|
||||
raise ValueError(f"empty handle on post {post.post_id}")
|
||||
parts = [f"**{n}/** @{post.handle}", "", post.text]
|
||||
media = (media_by_post or {}).get(post.post_id) or ()
|
||||
if media:
|
||||
parts.append("")
|
||||
|
||||
Reference in new issue
Block a user