mirror of https://gitlab.com/bashrc2/epicyon
Check that share is added to announce post
parent
afedb302b0
commit
7c5317224a
|
@ -21,6 +21,7 @@ from posts import postIsMuted
|
||||||
from posts import getPersonBox
|
from posts import getPersonBox
|
||||||
from posts import downloadAnnounce
|
from posts import downloadAnnounce
|
||||||
from posts import populateRepliesJson
|
from posts import populateRepliesJson
|
||||||
|
from utils import updateAnnounceCollection
|
||||||
from utils import isPGPEncrypted
|
from utils import isPGPEncrypted
|
||||||
from utils import isDM
|
from utils import isDM
|
||||||
from utils import rejectPostId
|
from utils import rejectPostId
|
||||||
|
@ -1302,21 +1303,26 @@ def individualPostAsHtml(allowDownloads: bool,
|
||||||
return ''
|
return ''
|
||||||
postJsonObject = postJsonAnnounce
|
postJsonObject = postJsonAnnounce
|
||||||
|
|
||||||
if isRecentPost(postJsonObject):
|
announceFilename = \
|
||||||
announceFilename = \
|
locatePost(baseDir, nickname, domain,
|
||||||
locatePost(baseDir, nickname, domain,
|
postJsonObject['id'])
|
||||||
postJsonObject['id'])
|
if announceFilename:
|
||||||
if announceFilename and postJsonObject.get('actor'):
|
updateAnnounceCollection(recentPostsCache,
|
||||||
if not os.path.isfile(announceFilename + '.tts'):
|
baseDir, announceFilename,
|
||||||
updateSpeaker(baseDir, httpPrefix,
|
postActor, domainFull, False)
|
||||||
nickname, domain, domainFull,
|
|
||||||
postJsonObject, personCache,
|
if isRecentPost(postJsonObject):
|
||||||
translate, postJsonObject['actor'],
|
if postJsonObject.get('actor'):
|
||||||
themeName)
|
if not os.path.isfile(announceFilename + '.tts'):
|
||||||
ttsFile = open(announceFilename + '.tts', "w+")
|
updateSpeaker(baseDir, httpPrefix,
|
||||||
if ttsFile:
|
nickname, domain, domainFull,
|
||||||
ttsFile.write('\n')
|
postJsonObject, personCache,
|
||||||
ttsFile.close()
|
translate, postJsonObject['actor'],
|
||||||
|
themeName)
|
||||||
|
ttsFile = open(announceFilename + '.tts', "w+")
|
||||||
|
if ttsFile:
|
||||||
|
ttsFile.write('\n')
|
||||||
|
ttsFile.close()
|
||||||
|
|
||||||
isAnnounced = True
|
isAnnounced = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue