Skip to content

Commit

Permalink
use ensureCached in posts, and show the post immediately
Browse files Browse the repository at this point in the history
  • Loading branch information
enkiv2 committed Jul 14, 2022
1 parent d57b237 commit d7ff7e1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fern
Original file line number Diff line number Diff line change
Expand Up @@ -379,8 +379,7 @@ def execCommand(cmd):
try:
posted=mastodon.status_post(msg, spoiler_text=cw)
seen_toots.append(posted["id"])
tootbase[posted["id"]]=posted
tb_dirty[int(str(posted["id"])[-2:])]=True
tl.insert(tlIdx+hlIdx, ensureCached(posted))
except Exception as e: statusMsg("Error in posting your "+str(length)+"-character message: "+str(e))
elif cmd=="reply":
msg=tl[tlIdx+hlIdx]
Expand Down

0 comments on commit d7ff7e1

Please sign in to comment.