mirror of https://gitlab.com/bashrc2/epicyon
Save notification patch content at time of receiving
parent
6a4d947d18
commit
0a2cf0e8b1
5
git.py
5
git.py
|
@ -117,5 +117,10 @@ def receiveGitPatch(baseDir: str, nickname: str, domain: str,
|
||||||
return False
|
return False
|
||||||
with open(patchFilename, "w") as patchFile:
|
with open(patchFilename, "w") as patchFile:
|
||||||
patchFile.write(contentStr)
|
patchFile.write(contentStr)
|
||||||
|
patchNotifyFilename = \
|
||||||
|
baseDir + '/accounts/' + \
|
||||||
|
nickname + '@' + domain + '/.newPatchContent'
|
||||||
|
with open(patchNotifyFilename, "w") as patchFile:
|
||||||
|
patchFile.write(contentStr)
|
||||||
return True
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
4
inbox.py
4
inbox.py
|
@ -60,7 +60,6 @@ from question import questionUpdateVotes
|
||||||
from media import replaceYouTube
|
from media import replaceYouTube
|
||||||
from git import isGitPatch
|
from git import isGitPatch
|
||||||
from git import receiveGitPatch
|
from git import receiveGitPatch
|
||||||
from git import gitFormatContent
|
|
||||||
|
|
||||||
|
|
||||||
def storeHashTags(baseDir: str, nickname: str, postJsonObject: {}) -> None:
|
def storeHashTags(baseDir: str, nickname: str, postJsonObject: {}) -> None:
|
||||||
|
@ -1710,9 +1709,6 @@ def gitPatchNotify(baseDir: str, handle: str,
|
||||||
with open(patchFile, 'w') as fp:
|
with open(patchFile, 'w') as fp:
|
||||||
fp.write(subject)
|
fp.write(subject)
|
||||||
|
|
||||||
with open(patchFile + 'Content', 'w') as fp:
|
|
||||||
fp.write(gitFormatContent(content))
|
|
||||||
|
|
||||||
|
|
||||||
def groupHandle(baseDir: str, handle: str) -> bool:
|
def groupHandle(baseDir: str, handle: str) -> bool:
|
||||||
"""Is the given account handle a group?
|
"""Is the given account handle a group?
|
||||||
|
|
Loading…
Reference in New Issue