From 955af755de2a619d81ea1d0f0e1e5b39ac3b96cd Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sun, 13 Oct 2024 10:51:50 +1300 Subject: [PATCH] FEP-268d: Search consent signals for objects --- app/activitypub/util.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 8884fdba..60a3222c 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -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