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.
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.