mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 07:13:52 -05:00
Fix a bug in bundling notes
This commit is contained in:
parent
2da4fd0de2
commit
fb2970af3b
@ -642,7 +642,10 @@ def note(request, next=None, prev=None):
|
||||
if account.preferences.bundle_notifications:
|
||||
|
||||
def bundle_key(note):
|
||||
return str(note.status.id) + note.type
|
||||
try:
|
||||
return str(note.status.id) + note.type
|
||||
except:
|
||||
return str(note.id) + note.type
|
||||
|
||||
sorted_notes = sorted(notes, key=bundle_key, reverse=True)
|
||||
for _, group in groupby(sorted_notes, bundle_key):
|
||||
|
Loading…
Reference in New Issue
Block a user