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
F15550138: D21603.id.diff
Sun, Apr 27, 9:36 AM
F15545345: D21603.diff
Sat, Apr 26, 10:15 AM
F15544845: D21603.diff
Sat, Apr 26, 7:20 AM
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
Mar 27 2025, 10:51 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
Branch
notif1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 25236
Build 34829: Run Core Tests
Build 34828: arc lint + arc unit