mirror of
https://github.com/d0zingcat/bluesky-crossposter.git
synced 2026-05-13 15:09:25 +00:00
Fixed faulty link restoration
This commit is contained in:
@@ -140,7 +140,7 @@ def restoreUrls(record):
|
||||
text = record.text
|
||||
encodedText = text.encode("UTF-8")
|
||||
for facet in record.facets:
|
||||
if facet.py_type != "app.bsky.richtext.facet#link":
|
||||
if facet.features[0].py_type != "app.bsky.richtext.facet#link":
|
||||
continue
|
||||
url = facet.features[0].uri
|
||||
# The index section designates where a URL starts end ends. Using this we can pick out the exact
|
||||
|
||||
Reference in New Issue
Block a user