From 084c5c0cc9dac9905421abf29e22445d80e079ff Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 18 Nov 2019 12:57:34 +0000 Subject: [PATCH] Rename function --- posts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts.py b/posts.py index 9291a5f59..07a9ec037 100644 --- a/posts.py +++ b/posts.py @@ -2276,7 +2276,7 @@ def createBoxBase(session,baseDir: str,boxname: str, \ return boxHeader return boxItems -def isTimelinePost(filePath: str,boxname: str,postsInBox: []) -> bool: +def addPostToTimeline(filePath: str,boxname: str,postsInBox: [],boxActor: str) -> bool: """ is this a valid timeline post? """ # must be a "Note" or "Announce" type @@ -2394,7 +2394,7 @@ def createBoxIndexed(session,baseDir: str,boxname: str, \ fullPostFilename= \ locatePost(baseDir,nickname,domain,postUrl,False) if fullPostFilename: - isTimelinePost(fullPostFilename,boxname,postsInBox) + addPostToTimeline(fullPostFilename,boxname,postsInBox,boxActor) postsCtr+=1 else: print('WARN: unable to locate post '+postUrl)