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
Unknown Object (File)
Tue, Feb 4, 3:08 AM
Unknown Object (File)
Sat, Jan 25, 5:11 AM
Unknown Object (File)
Tue, Jan 21, 11:47 AM
Unknown Object (File)
Tue, Jan 21, 10:28 AM
Unknown Object (File)
Fri, Jan 17, 2:10 PM
Unknown Object (File)
Thu, Jan 16, 2:10 PM
Unknown Object (File)
Sat, Jan 11, 7:45 AM
Unknown Object (File)
Fri, Jan 10, 6:57 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