diff --git a/git.py b/git.py index e7384046d..2388a26a3 100644 --- a/git.py +++ b/git.py @@ -117,5 +117,10 @@ def receiveGitPatch(baseDir: str, nickname: str, domain: str, return False with open(patchFilename, "w") as patchFile: patchFile.write(contentStr) + patchNotifyFilename = \ + baseDir + '/accounts/' + \ + nickname + '@' + domain + '/.newPatchContent' + with open(patchNotifyFilename, "w") as patchFile: + patchFile.write(contentStr) return True return False diff --git a/inbox.py b/inbox.py index 7817dbe53..d48456959 100644 --- a/inbox.py +++ b/inbox.py @@ -60,7 +60,6 @@ from question import questionUpdateVotes from media import replaceYouTube from git import isGitPatch from git import receiveGitPatch -from git import gitFormatContent def storeHashTags(baseDir: str, nickname: str, postJsonObject: {}) -> None: @@ -1710,9 +1709,6 @@ def gitPatchNotify(baseDir: str, handle: str, with open(patchFile, 'w') as fp: fp.write(subject) - with open(patchFile + 'Content', 'w') as fp: - fp.write(gitFormatContent(content)) - def groupHandle(baseDir: str, handle: str) -> bool: """Is the given account handle a group?