Retro Bulletin Board Systems on atproto. Web app and TUI. lazy mirror of alyraffauf/atbbs atbbs.xyz
forums python tui atproto bbs
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

tui/thread: build all reply widgets before mounting

+8 -3
+8 -3
tui/screens/thread.py
··· 141 141 if isinstance(parent_result, tuple): 142 142 self._replies_map[parent_result[0]] = parent_result[1] 143 143 144 + post_widgets = [] 144 145 for reply in result.replies: 145 146 parent_preview = None 146 147 if reply.parent and reply.parent in self._replies_map: ··· 150 151 ) 151 152 parent_preview = f"{parent_post.author.handle}: {body_preview}" 152 153 153 - await scroll.mount( 154 + post_widgets.append( 154 155 Post( 155 156 author=reply.author.handle, 156 157 date=reply.created_at, ··· 161 162 collection=lexicon.POST, 162 163 attachments=reply.attachments, 163 164 parent_preview=parent_preview, 164 - ), 165 - before=self.query_one("#page-status-bottom"), 165 + ) 166 + ) 167 + 168 + if post_widgets: 169 + await scroll.mount( 170 + *post_widgets, before=self.query_one("#page-status-bottom") 166 171 ) 167 172 168 173 # Focus first reply