Skip to content

Commit

Permalink
Merge pull request #3 from pookzilla/notifications-crash-fix
Browse files Browse the repository at this point in the history
fix crash when status object is missing (#1)
  • Loading branch information
mrusme authored Nov 23, 2022
2 parents 6f58c43 + 6d6e877 commit 9d4673d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mast/timeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ func (timeline *Timeline) Load() error {
oldestNotificationIndex := len(notifications) - 1
for i := oldestStatusIndex; i >= 0; i-- {
status := statuses[i]
if status == nil {
continue
}
var notification *mastodon.Notification = nil

if oldestNotificationIndex >= i {
Expand Down

0 comments on commit 9d4673d

Please sign in to comment.