FEP-268d: Search consent signals for objects

This commit is contained in:
rimu 2024-10-13 10:51:50 +13:00
parent 97396e9343
commit 955af755de

View file

@ -176,6 +176,8 @@ def post_to_page(post: Post):
activity_data[mode] = choices
activity_data['endTime'] = ap_datetime(poll.end_poll)
activity_data['votersCount'] = poll.total_votes()
if post.indexable:
activity_data['searchableBy'] = 'https://www.w3.org/ns/activitystreams#Public'
return activity_data