From a87072e13076fd9535071980898a2e796bcf4456 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 21 May 2020 23:02:27 +0100 Subject: [PATCH] Simplify --- posts.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/posts.py b/posts.py index 329ec02b..7eb7689d 100644 --- a/posts.py +++ b/posts.py @@ -2490,16 +2490,9 @@ def createBoxIndexed(recentPostsCache: {}, # bookmarks timeline is like the inbox but has its own separate index indexBoxName = boxname - boxes = { - "tlbookmarks": "bookmarks", - "dm": "dm", - "tlreplies": "tlreplies", - "tlmedia": "tlmedia", - "tlblogs": "tlblogs" - } - if boxes.get(boxname): - indexBoxName = boxes[boxname] - boxname = boxes[boxname] + if boxname == "tlbookmarks": + boxname = "bookmarks" + indexBoxName = boxname if port: if port != 80 and port != 443: