Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3359407
D7377.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
998 B
Referenced Files
None
Subscribers
None
D7377.diff
View Options
diff --git a/keyserver/src/deleters/thread-deleters.js b/keyserver/src/deleters/thread-deleters.js
--- a/keyserver/src/deleters/thread-deleters.js
+++ b/keyserver/src/deleters/thread-deleters.js
@@ -83,7 +83,7 @@
LEFT JOIN ids ir ON ir.id = r.id
LEFT JOIN messages ms ON ms.thread = t.id
LEFT JOIN ids im ON im.id = ms.id
- LEFT JOIN uploads up ON up.container = ms.id
+ LEFT JOIN uploads up ON (up.container = ms.id OR up.container = t.id)
LEFT JOIN ids iu ON iu.id = up.id
LEFT JOIN focused f ON f.thread = t.id
LEFT JOIN notifications n ON n.thread = t.id
@@ -144,7 +144,7 @@
LEFT JOIN ids ir ON ir.id = r.id
LEFT JOIN messages ms ON ms.thread = t.id
LEFT JOIN ids im ON im.id = ms.id
- LEFT JOIN uploads up ON up.container = ms.id
+ LEFT JOIN uploads up ON (up.container = ms.id OR up.container = t.id)
LEFT JOIN ids iu ON iu.id = up.id
LEFT JOIN focused f ON f.thread = t.id
LEFT JOIN notifications n ON n.thread = t.id
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 8:56 AM (19 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2579121
Default Alt Text
D7377.diff (998 B)
Attached To
Mode
D7377: [keyserver] Update `deleteThread` and `deleteInaccessibleThreads` to handle thread image avatars
Attached
Detach File
Event Timeline
Log In to Comment