We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
atom:uri
https://github.com/snarfed/granary/blob/main/granary/atom.py#L265
a = { 'objectType': 'activity', 'verb': _as1_value(entry, 'verb') or 'post', 'id': _text(entry, 'id') or (obj['id'] if obj_elem is None else None), 'url': _text(entry, 'uri') or (obj['url'] if obj_elem is None else None), 'object': obj, 'actor': _author_to_actor(entry, feed_author=feed_author), 'inReplyTo': obj.get('inReplyTo'), }
atom:uri element doesn't do what you think it does. Correct way of getting a URL from an entry is href attribute of atom:link element.
href
atom:link
The text was updated successfully, but these errors were encountered:
Ah, good catch, thank you! uri is evidently for authors. Fortunately this should generally a noop, since we're grabbing link here:
uri
link
granary/granary/atom.py
Line 284 in e93dbd2
Still worth fixing though!
Sorry, something went wrong.
8f2dcd9
No branches or pull requests
https://github.com/snarfed/granary/blob/main/granary/atom.py#L265
atom:uri
element doesn't do what you think it does. Correct way of getting a URL from an entry ishref
attribute ofatom:link
element.The text was updated successfully, but these errors were encountered: