Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14051682
D13216.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
781 B
Referenced Files
None
Subscribers
None
D13216.diff
View Options
diff --git a/src/applications/files/query/PhabricatorFileQuery.php b/src/applications/files/query/PhabricatorFileQuery.php
--- a/src/applications/files/query/PhabricatorFileQuery.php
+++ b/src/applications/files/query/PhabricatorFileQuery.php
@@ -142,6 +142,14 @@
foreach ($files as $file) {
$phids = array_keys($edges[$file->getPHID()][$edge_type]);
$file->attachObjectPHIDs($phids);
+
+ if ($file->getIsProfileImage()) {
+ // If this is a profile image, don't bother loading related files.
+ // It will always be visible, and we can get into trouble if we try
+ // to load objects and end up stuck in a cycle. See T8478.
+ continue;
+ }
+
foreach ($phids as $phid) {
$object_phids[$phid] = true;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 2:56 AM (2 d, 18 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6738898
Default Alt Text
D13216.diff (781 B)
Attached To
Mode
D13216: Don't load attached files for profile images
Attached
Detach File
Event Timeline
Log In to Comment