Merge branch 'main' of skyjake.fi:gemini/bubble into main

This commit is contained in:
Jaakko Keränen 2023-11-30 06:42:11 +02:00
commit d7528d3252
1 changed files with 2 additions and 3 deletions

View File

@ -311,9 +311,6 @@ class Subgrouping:
src = []
top_head = False
for post_id, notifs in self.by_post.items():
if top_head:
# Separate subgroups.
src.append('')
top_head = post_id and len(notifs) > 1
if top_head:
n = notifs[0]
@ -321,6 +318,8 @@ class Subgrouping:
sub_text = f" in {'u/' if n.post_subowner else 's/'}{n.post_subname}"
else:
sub_text = ''
if src:
src.append('')
src.append(f'"{n.title_text()}"{sub_text}:')
for notif in notifs:
src.append('=> %s %s' % notif.entry(with_title=not top_head))