forked from indymedia/epicyon
Debug for git
parent
71f8b95adf
commit
307ae74b29
6
inbox.py
6
inbox.py
|
@ -2049,19 +2049,25 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
postJsonObject, maxMentions, maxEmoji):
|
postJsonObject, maxMentions, maxEmoji):
|
||||||
|
|
||||||
# check for incoming git patches
|
# check for incoming git patches
|
||||||
|
print('Debug git 1')
|
||||||
if isinstance(postJsonObject['object'], dict):
|
if isinstance(postJsonObject['object'], dict):
|
||||||
|
print('Debug git 2')
|
||||||
if postJsonObject['object'].get('content') and \
|
if postJsonObject['object'].get('content') and \
|
||||||
postJsonObject['object'].get('summary'):
|
postJsonObject['object'].get('summary'):
|
||||||
|
print('Debug git 3')
|
||||||
if receiveGitPatch(baseDir, nickname, domain,
|
if receiveGitPatch(baseDir, nickname, domain,
|
||||||
postJsonObject['object']['summary'],
|
postJsonObject['object']['summary'],
|
||||||
postJsonObject['object']['content']):
|
postJsonObject['object']['content']):
|
||||||
|
print('Debug git 4')
|
||||||
gitPatchNotify(baseDir, handle,
|
gitPatchNotify(baseDir, handle,
|
||||||
postJsonObject['object']['summary'],
|
postJsonObject['object']['summary'],
|
||||||
postJsonObject['object']['content'])
|
postJsonObject['object']['content'])
|
||||||
elif '[PATCH]' in postJsonObject['object']['content']:
|
elif '[PATCH]' in postJsonObject['object']['content']:
|
||||||
|
print('Debug git 5')
|
||||||
print('WARN: git patch not accepted - ' +
|
print('WARN: git patch not accepted - ' +
|
||||||
postJsonObject['object']['summary'])
|
postJsonObject['object']['summary'])
|
||||||
return False
|
return False
|
||||||
|
print('Debug git 6')
|
||||||
|
|
||||||
# replace YouTube links, so they get less tracking data
|
# replace YouTube links, so they get less tracking data
|
||||||
replaceYouTube(postJsonObject)
|
replaceYouTube(postJsonObject)
|
||||||
|
|
Loading…
Reference in New Issue