From 307ae74b29bbd809712dc5a026f1cb6d2c9b4f12 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 2 May 2020 13:59:23 +0000 Subject: [PATCH] Debug for git --- inbox.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/inbox.py b/inbox.py index 8513d7f0d..08ad010e4 100644 --- a/inbox.py +++ b/inbox.py @@ -2049,19 +2049,25 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int, postJsonObject, maxMentions, maxEmoji): # check for incoming git patches + print('Debug git 1') if isinstance(postJsonObject['object'], dict): + print('Debug git 2') if postJsonObject['object'].get('content') and \ postJsonObject['object'].get('summary'): + print('Debug git 3') if receiveGitPatch(baseDir, nickname, domain, postJsonObject['object']['summary'], postJsonObject['object']['content']): + print('Debug git 4') gitPatchNotify(baseDir, handle, postJsonObject['object']['summary'], postJsonObject['object']['content']) elif '[PATCH]' in postJsonObject['object']['content']: + print('Debug git 5') print('WARN: git patch not accepted - ' + postJsonObject['object']['summary']) return False + print('Debug git 6') # replace YouTube links, so they get less tracking data replaceYouTube(postJsonObject)