Page MenuHomePhabricator

Fix an error when users receive notifications about objects they can no longer see
ClosedPublic

Authored by epriestley on Mar 11 2021, 6:34 PM.
Tags
None
Referenced Files
F15581099: D21603.diff
Wed, May 7, 9:41 AM
F15550138: D21603.id.diff
Sun, Apr 27, 9:36 AM
F15545345: D21603.diff
Sat, Apr 26, 10:15 AM
F15544845: D21603.diff
Sat, Apr 26, 7:20 AM
F15491392: D21603.id51429.diff
Sat, Apr 12, 2:50 AM
F15482577: D21603.diff
Apr 9 2025, 6:24 AM
F15470286: D21603.id51430.diff
Apr 4 2025, 9:30 PM
F15451653: D21603.id51430.diff
Mar 28 2025, 11:11 PM
Subscribers
None

Details

Summary

Ref T13623. The change in D21577 could lead to a case where we try to access stories the user can't see.

Move the story-loading piece to "willFilterPage()" to make our way thorugh this.

Test Plan
  • Made FeedStory return nothing to simulate invisible notifications, loaded page.
    • Before: index access fatal.
    • After: clean "no notifications".
  • Loaded notifications normally, saw normal notifications.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable