Check for reply failure

merge-requests/30/head
Bob Mottram 2021-03-10 19:31:33 +00:00
parent 8d94684d8b
commit 398ded4b9e
1 changed files with 12 additions and 10 deletions

View File

@ -184,16 +184,18 @@ def _replyToPost(session, postId: str,
isArticle = False isArticle = False
subject = None subject = None
commentsEnabled = True commentsEnabled = True
sendPostViaServer(__version__, if sendPostViaServer(__version__,
baseDir, session, nickname, password, baseDir, session, nickname, password,
domain, port, domain, port,
toNickname, toDomain, toPort, ccUrl, toNickname, toDomain, toPort, ccUrl,
httpPrefix, replyMessage, followersOnly, httpPrefix, replyMessage, followersOnly,
commentsEnabled, attach, mediaType, commentsEnabled, attach, mediaType,
attachedImageDescription, attachedImageDescription,
cachedWebfingers, personCache, isArticle, cachedWebfingers, personCache, isArticle,
debug, postId, postId, subject) debug, postId, postId, subject) == 0:
sayStr = 'Reply sent' sayStr = 'Reply sent'
else:
sayStr = 'Reply failed'
_sayCommand(sayStr, screenreader, systemLanguage, espeak) _sayCommand(sayStr, screenreader, systemLanguage, espeak)