forked from indymedia/epicyon
index sent messages so that they appear in inbox
parent
ccae33b315
commit
4ffd0685d8
2
blog.py
2
blog.py
|
@ -288,7 +288,7 @@ def htmlBlogPost(authorized: bool, \
|
|||
htmlBlogPostContent(authorized,baseDir,httpPrefix,translate, \
|
||||
nickname,domain,domainFull,postJsonObject, \
|
||||
None,False)
|
||||
|
||||
|
||||
# show rss link
|
||||
iconsDir=getIconsDir(baseDir)
|
||||
blogStr+='<p class="rssfeed">'
|
||||
|
|
12
outbox.py
12
outbox.py
|
@ -166,7 +166,7 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
|
|||
if messageJson['object'].get('type'):
|
||||
if messageJson['object']['type']=='Article':
|
||||
outboxName='tlblogs'
|
||||
|
||||
|
||||
savedFilename= \
|
||||
savePostToBox(baseDir, \
|
||||
httpPrefix, \
|
||||
|
@ -178,9 +178,13 @@ def postMessageToOutbox(messageJson: {},postToNickname: str, \
|
|||
messageJson['type']=='Note' or \
|
||||
messageJson['type']=='Article' or \
|
||||
messageJson['type']=='Announce':
|
||||
inboxUpdateIndex(outboxName,baseDir, \
|
||||
postToNickname+'@'+domain, \
|
||||
savedFilename,debug)
|
||||
indexes=[outboxName,"inbox"]
|
||||
for boxNameIndex in indexes:
|
||||
if boxNameIndex=='inbox' and outboxName=='tlblogs':
|
||||
continue
|
||||
inboxUpdateIndex(boxNameIndex,baseDir, \
|
||||
postToNickname+'@'+domain, \
|
||||
savedFilename,debug)
|
||||
if outboxAnnounce(recentPostsCache, \
|
||||
baseDir,messageJson,debug):
|
||||
if debug:
|
||||
|
|
Loading…
Reference in New Issue