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
F15491392: D21603.id51429.diff
Sat, Apr 12, 2:50 AM
F15482577: D21603.diff
Wed, Apr 9, 6:24 AM
F15470286: D21603.id51430.diff
Fri, Apr 4, 9:30 PM
F15451653: D21603.id51430.diff
Fri, Mar 28, 11:11 PM
F15444714: D21603.id.diff
Thu, Mar 27, 10:51 AM
F15442125: D21603.id51430.diff
Mar 26 2025, 9:39 PM
F15440307: D21603.diff
Mar 26 2025, 12:01 PM
F15383431: D21603.id51430.diff
Mar 14 2025, 4:41 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