a digital person for bluesky

Add facet extraction, embed handling, and thread visualization #10

merged
opened by 3fz.org targeting main

Add facet extraction and embed handling. Enables void to properly read links, link previews, quotes, and see images. Also includes consecutive chain processing to enable passing the last post in multi-part replies.

Port features from umbra to void:

extract_links_from_facets: Extract link URLs with text from facets

extract_images_from_embed: Extract images from all embed types

extract_images_from_thread: Collect images from thread chronologically

extract_external_link_from_embed: Extract link card data

extract_quote_post_from_embed: Extract quoted post with status handling

extract_embed_data: Main entry point for embed extraction

Enhanced thread processing:

flatten_thread_structure now properly accesses AT Protocol properties

Extracts links from facets, embed data, and parent_uri

Thread visualization:

compute_tree_prefixes: Generate tree-style prefixes

build_tree_view: Build text visualization of thread structure

thread_to_yaml_string: Add include_tree_view parameter

Consecutive chain processing:

find_last_consecutive_post_in_chain: Traverse down to find last post

find_consecutive_parent_posts_by_author: Traverse up parent chain

0
by 3fz.org 0 comments
pull request successfully merged
sign up or login to add to the discussion
Labels

None yet.

Participants 1
AT URI
at://did:plc:27ivzcszryxp6mehutodmcxo/sh.tangled.repo.pull/3mbsiz7fo2m22