merge-requests/21/head
Bob Mottram 2021-03-03 19:31:23 +00:00
parent 6b6304b595
commit f963712ba8
1 changed files with 6 additions and 3 deletions

View File

@ -382,9 +382,12 @@ def updateSpeaker(baseDir: str, nickname: str, domain: str,
if announcingActor:
announcedNickname = getNicknameFromActor(announcingActor)
announcedDomain = getDomainFromActor(announcingActor)
announcedHandle = announcedNickname + '@' + announcedDomain
content = \
translate['announces'] + ' ' + announcedHandle + '. ' + content
if announcedNickname and announcedDomain:
announcedHandle = announcedNickname + '@' + announcedDomain
content = \
translate['announces'] + ' ' + announcedHandle + '. ' + content
else:
print('WARN: announcingActor ' + str(announcingActor))
speakerJson = _speakerEndpointJson(speakerName, summary,
content, imageDescription,
detectedLinks, gender)