Skip to content

v7.0

Latest
Compare
Choose a tag to compare
@snarfed snarfed released this 25 Jun 04:55
· 224 commits to main since this release
9a67b5c

Breaking changes:

  • jsonfeed:
    • jsonfeed_to_activities: return AS1 objects, not activities.

Non-breaking changes:

  • as1:
    • activity_changed: add displayName, summary fields.
    • is_public: return False if the object/activity contains to that's empty or has only unknown aliases.
  • as2:
    • Add support for the Application, Block, Flag, and Link types.
    • Generalize actor logic in to/from_as1 across all actor types, not just Person.
    • Add new link_tags function.
  • atom:
    • activities_to_atom: handle image attachments without url field.
  • bluesky:
    • to_as1:
      • Add support for:
        • app.bsky.embed.record
        • app.bsky.embed.recordWithMedia
        • app.bsky.feed.defs#notFoundPost
        • app.bsky.feed.generator
        • app.bsky.graph.block
        • app.bsky.graph.list
        • app.bsky.graph.listitem
        • com.atproto.admin.defs#repoRef
        • com.atproto.moderation.createReport#input
        • com.atproto.repo.strongRef
      • Add hashtag facet support.
      • Convert blobs in embeds to getBlob image URLs.
      • app.bsky.actor.profile: add HTML links for URLs in summary (snarfed/bridgy-fed#1065).
      • Escape HTML characters (<, >, &) in app.bsky.actor.profile description field.
      • Bug fix for create/update activities with bare string object.
    • from_as1:
      • Add hashtag, mention, block, and flag support. Interpret tags with missing objectType as hashtags.
      • Guess missing indices in facets based on content text. Otherwise, if we still don't know a facet's indices, discard it.
      • Extract HTML links ( tags) from HTML content and convert to link facets (snarfed/bridgy-fed#976).
      • If an output string value is longer than its maxGraphemes or maxLength in its lexicon, truncate it with an ellipsis character at the end in order to fit. If this happens to post text, include a link embed pointing to the original post.
      • If the object has a video, include an external embed pointing to the original post and mark it as [Video] (snarfed/bridgy-fed#1078).
      • If the object has images, add the original post link to the end of the text, since Bluesky doesn't support both image and external embeds in the same post (bluesky-social/atproto#2575, snarfed/bridgy-fed#1106).
      • If a note has summary - often used for content warnings in the fediverse - add it to content as a prefix instead of overriding content (snarfed/bridgy-fed#1001).
      • Populate reply.root properly in reply posts (snarfed/bridgy#1696).
      • Add new original_fields_prefix kwarg to store original data in custom (off-Lexicon) *OriginalDescription and *OriginalUrl fields in app.bsky.actor.profile and *OriginalText and *OriginalUrl fields in app.bsky.feed.post (snarfed/bridgy-fed#1092).
      • Support lexrpc.Client as well as Bluesky for client kwarg.
    • from_as1_to_strong_ref:
      • Add value boolean kwarg.
      • Change client kwarg from Bluesky to lexrpc.Client.
  • microformats2:
    • Generalize actor logic across all actor types, not just person.
    • json_to_object:
      • Strip leading # prefix (if present) from hashtag u-categorys.
      • Bug fix for when name property is an object, eg an h-card.
    • object_to_json:
      • Convert both id and url inside inReplyTo to in-reply-to.
  • nostr:
    • Handle connection closing while sending initial query.
  • source:
    • Source.postprocess: when extracting @-mentions, defer to existing tag if it has the same displayName and has url.