Skip to content

Commit

Permalink
mentions_only actually doesn't force type=mention
Browse files Browse the repository at this point in the history
  • Loading branch information
enkiv2 committed Jul 14, 2022
1 parent dff50b7 commit bdfd10d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fern
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ def getTimeline(which=None, **kw_args):
tl=[]
tl2=[]
if(which=="notifications"):
tl2=[x["status"] for x in mastodon.notifications(mentions_only=myAccountId)]
tl2=ensureCached([x["status"] for x in mastodon.notifications(mentions_only=myAccountId) if x["type"]=="mention"])
else: tl2=mastodon.timeline(timeline=which, **kw_args)
tl.extend(ensureCached(tl2, verbose=True))
saveBase()
Expand Down Expand Up @@ -577,7 +577,7 @@ def importHistory(src="all", verbose=False):
return []
toots=allPages(page, True, "Getting "+src+"...")
if src in ["notifications", "mentions"]:
toots=ensureCached([x["status"] for x in toots])
toots=ensureCached([x["status"] for x in toots if x["type"]=="mention"])
return expandThreads(list(map(lambda x: gTid(x), toots)), True)

def allPages(page, verbose=False, msg=None):
Expand Down

0 comments on commit bdfd10d

Please sign in to comment.