mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
FEP-268d: Search consent signals for objects
This commit is contained in:
parent
97396e9343
commit
955af755de
1 changed files with 2 additions and 0 deletions
|
@ -176,6 +176,8 @@ def post_to_page(post: Post):
|
||||||
activity_data[mode] = choices
|
activity_data[mode] = choices
|
||||||
activity_data['endTime'] = ap_datetime(poll.end_poll)
|
activity_data['endTime'] = ap_datetime(poll.end_poll)
|
||||||
activity_data['votersCount'] = poll.total_votes()
|
activity_data['votersCount'] = poll.total_votes()
|
||||||
|
if post.indexable:
|
||||||
|
activity_data['searchableBy'] = 'https://www.w3.org/ns/activitystreams#Public'
|
||||||
return activity_data
|
return activity_data
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue