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
F19060010: D21603.diff
Sat, Nov 29, 7:34 AM
F18887435: D21603.id51429.diff
Fri, Nov 7, 6:00 AM
F18671092: D21603.id.diff
Sep 25 2025, 2:40 AM
F18639582: D21603.diff
Sep 17 2025, 2:34 PM
F18625904: D21603.diff
Sep 15 2025, 11:53 PM
F18571746: D21603.id51430.diff
Sep 10 2025, 5:20 AM
F18571743: D21603.id51429.diff
Sep 10 2025, 5:20 AM
F18102764: D21603.id51430.diff
Aug 9 2025, 11:09 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
Branch
notif1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25236
Build 34829: Run Core Tests
Build 34828: arc lint + arc unit