v3.1
版本发布时间: 2021-04-04 14:29:33
snarfed/granary最新发布版本:v6.1(2023-09-16 22:20:19)
Notable changes
- Add Python 3.8 support, drop 3.3 and 3.4. Python 3.5 is now the minimum required version.
- Add Pixelfed! Heavily based on Mastodon.
- Standardize Instagram's and Facebook's scraping into new common
scraped_to_activities()
,scraped_to_activity()
, andmerge_scraped_reactions()
methods. - Atom:
- Add the
summary
element (#157).
- Add the
- REST API:
- Bug fix: URL-encode Unicode characters in
Link
HTTP headers (egrel=self
,rel=header
).
- Bug fix: URL-encode Unicode characters in
- Facebook:
- Scraping now uses mbasic.facebook.com instead of m.facebook.com.
- Flickr:
- Add support for adding tags to existing photos (bridgy#857).
-
get_comment()
: skip fetching comments from API ifactivity
kwarg is provided and contains the requested comment.
- GitHub:
- Handle HTTP 451 Unavailable for Legal Reasons responses (eg for DMCA takedowns) gracefully.
- Add create/preview support for reactions on pull review request comments (ie URLs with
#discussion_r...
fragments).
- HTML/microformats2:
- Add
aria-hidden="true"
to empty links (bridgy#947). - Bug fix: escape
&
,<
, and>
characters in bare mf2content
properties (aaronpk/XRay#102). -
json_to_object()
: convertnickname
tousername
.
- Add
- JSON Feed:
- Gracefully handle when
content_html
andcontent_text
are incorrectly lists instead of strings.
- Gracefully handle when
- Instagram:
- Include threaded (ie nested) comments in scraping (bridgy#958).
- Mastodon:
- Bug fix for alt text with image attachments (bridgy#975).
- Omit empty
limit
param for compatibility with Pleroma (bridgy#977).
- Meetup:
-
create()
: handle API errors and return the error message in theCreationResult
(bridgy#921).
-
- Twitter:
- Bug fix: URL-encode list names in API calls.
- Bug fix: propagate alt text into AS1
photo.displayName
so that it gets all the way into microformats2 JSON and HTML (#183).
- Reddit:
- Implement
post_id()
. - Cache user data fetched from the API for 5m to avoid repeating user profile API requests (bridgy#1021). when fetching multiple comments or posts from the same author
- Bug fix: use 'displayName' instead of 'name' in AS1 objects for submissions.
- Bug fix: use tag URIs for activity ids.
- Implement
- ActivityStreams 2:
-
to_as1()
: forCreate
activities, include the activity actor's data in the object's author (snarfed/bridgy-fed#75). -
to_as1()
: convertpreferredUsername
tousername
. -
from_as1()
: convertusername
topreferredUsername
. -
from_as1()
: bug fix, makecontext
kwarg actually work.
-