From ab7ac29d35772275f27571d080c9ddcbb2d4311a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 22 Oct 2019 21:30:43 +0100 Subject: [PATCH] Index for media timeline --- inbox.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inbox.py b/inbox.py index c0ec90a7..ef4f90d1 100644 --- a/inbox.py +++ b/inbox.py @@ -49,6 +49,7 @@ from httpsig import messageContentDigest from posts import downloadAnnounce from posts import isDM from posts import isReply +from posts import isImageMedia from posts import sendSignedJson from webinterface import individualPostAsHtml from webinterface import getIconsDir @@ -1581,6 +1582,10 @@ def inboxAfterCapabilities(session,keyId: str,handle: str,messageJson: {}, \ updateIndexList.append('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 obtainAvatarForReplyPost(session,baseDir,httpPrefix,domain,personCache,postJsonObject,debug)