Skip to content

Commit

Permalink
ATProto: bluesky._to_external_embed => to_external_embed
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Dec 3, 2024
1 parent ccdb77d commit 2920b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atproto.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from google.cloud import ndb
import googleapiclient.discovery
from granary import as1, bluesky
from granary.bluesky import Bluesky, FROM_AS1_TYPES, _to_external_embed
from granary.bluesky import Bluesky, FROM_AS1_TYPES, to_external_embed
from granary.source import html_to_text, INCLUDE_LINK, Source
from lexrpc import Client, ValidationError
from requests import RequestException
Expand Down Expand Up @@ -884,7 +884,7 @@ def fetch_blob(url, blob_field, name, check_size=True, check_type=True):
props = appview.defs['app.bsky.embed.external#external']['properties']
fetch_blob(img, props, name='thumb',
check_size=False, check_type=False)
ret['embed'] = _to_external_embed(link.as1, blobs=blobs)
ret['embed'] = to_external_embed(link.as1, blobs=blobs)
break

if from_proto != ATProto:
Expand Down

0 comments on commit 2920b57

Please sign in to comment.