From 5193d850e7fb18b3dbc66f386f09bffa7b655752 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 15 Jan 2020 11:06:40 +0000 Subject: [PATCH] Replace youtube on new posts --- outbox.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/outbox.py b/outbox.py index 0c6055479..01aea264f 100644 --- a/outbox.py +++ b/outbox.py @@ -17,6 +17,7 @@ from utils import getDomainFromActor from blocking import isBlockedDomain from blocking import outboxBlock from blocking import outboxUndoBlock +from media import replaceYouTube from media import getMediaPath from media import createMediaDirs from inbox import inboxUpdateIndex @@ -89,6 +90,8 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \ if debug: print('DEBUG: domain is blocked: '+messageJson['actor']) return False + # replace youtube, so that google gets less tracking data + replaceYouTube(messageJson) # https://www.w3.org/TR/activitypub/#create-activity-outbox messageJson['object']['attributedTo']=messageJson['actor'] if messageJson['object'].get('attachment'):