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
F13087544: D21603.diff
Thu, Apr 25, 1:00 AM
Unknown Object (File)
Sat, Apr 20, 5:38 PM
Unknown Object (File)
Tue, Apr 16, 1:55 PM
Unknown Object (File)
Thu, Apr 11, 8:45 AM
Unknown Object (File)
Wed, Mar 27, 8:22 PM
Unknown Object (File)
Wed, Mar 27, 8:21 PM
Unknown Object (File)
Wed, Mar 27, 8:20 PM
Unknown Object (File)
Jan 23 2024, 7:21 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