opt-out preference signals

main
Bob Mottram 2024-06-23 10:11:17 +01:00
parent 1ad63fb268
commit 95121b9919
2 changed files with 9 additions and 1 deletions

View File

@ -95,7 +95,7 @@ def meta_data_node_info(base_dir: str,
"publicTimelineVisibility": {},
"postFormats": ["text/plain", "text/html", "text/markdown"],
"FEPs": ["c648", "521a", "8fcf", "4ccd", "c118", "fffd",
"1970", "0837", "7628", "2677"]
"1970", "0837", "7628", "2677", "5e53"]
}
}
return nodeinfo

View File

@ -1268,8 +1268,12 @@ def _create_post_s2s(base_dir: str, nickname: str, domain: str, port: int,
local_actor_url(http_prefix, nickname, domain)
if not conversation_id:
conversation_id = new_post_id
# add opt-outs as in:
# https://codeberg.org/fediverse/fep/src/branch/main/fep/5e53/fep-5e53.md
new_post = {
'@context': post_context,
'xRobotsTag': 'noai, noimageai, GPC',
'secGPC': '1',
'id': new_post_id + '/activity',
'type': 'Create',
'actor': actor_url,
@ -1369,8 +1373,12 @@ def _create_post_c2s(base_dir: str, nickname: str, domain: str, port: int,
http_prefix + '://' + domain + '/@' + nickname + '/' + status_number
if not conversation_id:
conversation_id = new_post_id
# add opt-outs as in:
# https://codeberg.org/fediverse/fep/src/branch/main/fep/5e53/fep-5e53.md
new_post = {
"@context": post_context,
'xRobotsTag': 'noai, noimageai, GPC',
'secGPC': '1',
'id': new_post_id,
'conversation': conversation_id,
'context': conversation_id,