diff --git a/git.py b/git.py index 0a0a12ed8..a447f2d12 100644 --- a/git.py +++ b/git.py @@ -155,12 +155,12 @@ def gitAddFromHandle(patchStr: str, handle: str) -> str: def receiveGitPatch(baseDir: str, nickname: str, domain: str, - subject: str, content: str, + messageType: str, subject: str, content: str, fromNickname: str, fromDomain: str) -> bool: """Receive a git patch """ if not isGitPatch(baseDir, nickname, domain, - subject, content): + messageType, subject, content): return False patchStr = gitFormatContent(content) diff --git a/inbox.py b/inbox.py index 1730cb23b..be4bffad8 100644 --- a/inbox.py +++ b/inbox.py @@ -2062,6 +2062,7 @@ def inboxAfterCapabilities(recentPostsCache: {}, maxRecentPosts: int, if fromPort != 80 and fromPort != 443: fromDomain += ':' + str(fromPort) if receiveGitPatch(baseDir, nickname, domain, + postJsonObject['object']['type'], postJsonObject['object']['summary'], postJsonObject['object']['content'], fromNickname, fromDomain): diff --git a/webinterface.py b/webinterface.py index 0e464b600..c00943a89 100644 --- a/webinterface.py +++ b/webinterface.py @@ -3935,6 +3935,7 @@ def individualPostAsHtml(recentPostsCache: {}, maxRecentPosts: int, if not postJsonObject['object'].get('content'): return '' isPatch = isGitPatch(baseDir, nickname, domain, + postJsonObject['object']['type'], postJsonObject['object']['summary'], postJsonObject['object']['content'])