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)
Apr 18 2026, 3:54 AM
Unknown Object (File)
Apr 2 2026, 4:35 PM
Unknown Object (File)
Mar 7 2026, 2:52 AM
Unknown Object (File)
Mar 7 2026, 2:51 AM
Unknown Object (File)
Jan 20 2026, 10:31 AM
Unknown Object (File)
Jan 12 2026, 11:18 AM
Unknown Object (File)
Dec 23 2025, 10:35 AM
Unknown Object (File)
Dec 19 2025, 1:23 AM
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