mirror of https://gitlab.com/bashrc2/epicyon
Define summary
parent
9a1170ce11
commit
0c4aa23fad
3
inbox.py
3
inbox.py
|
@ -1598,6 +1598,7 @@ def _validPostContent(baseDir: str, nickname: str, domain: str,
|
||||||
if not validPostDate(messageJson['object']['published'], 90, debug):
|
if not validPostDate(messageJson['object']['published'], 90, debug):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
summary = None
|
||||||
if messageJson['object'].get('summary'):
|
if messageJson['object'].get('summary'):
|
||||||
summary = messageJson['object']['summary']
|
summary = messageJson['object']['summary']
|
||||||
if not isinstance(summary, str):
|
if not isinstance(summary, str):
|
||||||
|
@ -1609,7 +1610,7 @@ def _validPostContent(baseDir: str, nickname: str, domain: str,
|
||||||
|
|
||||||
if isGitPatch(baseDir, nickname, domain,
|
if isGitPatch(baseDir, nickname, domain,
|
||||||
messageJson['object']['type'],
|
messageJson['object']['type'],
|
||||||
messageJson['object']['summary'],
|
summary,
|
||||||
messageJson['object']['content']):
|
messageJson['object']['content']):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue