Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14399683
D8488.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8488.diff
View Options
diff --git a/src/applications/feed/builder/PhabricatorFeedBuilder.php b/src/applications/feed/builder/PhabricatorFeedBuilder.php
--- a/src/applications/feed/builder/PhabricatorFeedBuilder.php
+++ b/src/applications/feed/builder/PhabricatorFeedBuilder.php
@@ -57,8 +57,21 @@
$null_view->appendChild($header);
}
- $view = $story->renderView();
- $view->setUser($user);
+ try {
+ $view = $story->renderView();
+ $view->setUser($user);
+ $view = $view->render();
+ } catch (Exception $ex) {
+ // If rendering failed for any reason, don't fail the entire feed,
+ // just this one story.
+ $view = id(new PHUIFeedStoryView())
+ ->setUser($user)
+ ->setChronologicalKey($story->getChronologicalKey())
+ ->setEpoch($story->getEpoch())
+ ->setTitle(
+ pht('Feed Story Failed to Render (%s)', get_class($story)))
+ ->appendChild(pht('%s: %s', get_class($ex), $ex->getMessage()));
+ }
$null_view->appendChild($view);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 5:31 PM (12 h, 43 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6921690
Default Alt Text
D8488.diff (1 KB)
Attached To
Mode
D8488: Fail feed story renders individually, instead of in aggregate
Attached
Detach File
Event Timeline
Log In to Comment