Debug for git

main
Bob Mottram 2020-05-02 13:59:23 +00:00
parent 71f8b95adf
commit 307ae74b29
1 changed files with 6 additions and 0 deletions

View File

@ -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)