kopia lustrzana https://github.com/snarfed/bridgy-fed
add URL to notification feed entries
rodzic
6add016b7e
commit
a0a92d4f3e
2
pages.py
2
pages.py
|
@ -225,11 +225,11 @@ def serve_feed(*, objects, format, title, as_snippets=False, quiet=False):
|
||||||
'content': f'{obj.actor_link(image=False)} {obj.phrase} {obj.content}',
|
'content': f'{obj.actor_link(image=False)} {obj.phrase} {obj.content}',
|
||||||
'content_is_html': True,
|
'content_is_html': True,
|
||||||
'updated': obj.updated.isoformat(),
|
'updated': obj.updated.isoformat(),
|
||||||
|
'url': as1.get_url(obj.as1) or as1.get_url(as1.get_object(obj.as1)),
|
||||||
} for obj in objects]
|
} for obj in objects]
|
||||||
else:
|
else:
|
||||||
activities = [obj.as1 for obj in objects]
|
activities = [obj.as1 for obj in objects]
|
||||||
|
|
||||||
|
|
||||||
# hydrate authors, actors, objects from stored Objects
|
# hydrate authors, actors, objects from stored Objects
|
||||||
fields = 'author', 'actor', 'object'
|
fields = 'author', 'actor', 'object'
|
||||||
gets = []
|
gets = []
|
||||||
|
|
Ładowanie…
Reference in New Issue