Index for media timeline

main2
Bob Mottram 2019-10-22 21:30:43 +01:00
parent b0d6fd80f5
commit ab7ac29d35
1 changed files with 5 additions and 0 deletions

View File

@ -49,6 +49,7 @@ from httpsig import messageContentDigest
from posts import downloadAnnounce from posts import downloadAnnounce
from posts import isDM from posts import isDM
from posts import isReply from posts import isReply
from posts import isImageMedia
from posts import sendSignedJson from posts import sendSignedJson
from webinterface import individualPostAsHtml from webinterface import individualPostAsHtml
from webinterface import getIconsDir from webinterface import getIconsDir
@ -1581,6 +1582,10 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \
updateIndexList.append('tlreplies') updateIndexList.append('tlreplies')
replyNotify(baseDir,handle,httpPrefix+'://'+domain+'/users/'+nickname+'/tlreplies') replyNotify(baseDir,handle,httpPrefix+'://'+domain+'/users/'+nickname+'/tlreplies')
if isImageMedia(session,baseDir,httpPrefix,nickname,domain,postJsonObject):
# media index will be updated
updateIndexList.append('tlmedia')
# get the avatar for a reply/announce # get the avatar for a reply/announce
obtainAvatarForReplyPost(session,baseDir,httpPrefix,domain,personCache,postJsonObject,debug) obtainAvatarForReplyPost(session,baseDir,httpPrefix,domain,personCache,postJsonObject,debug)