Page MenuHomePhabricator

D7377.diff
No OneTemporary

D7377.diff

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

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)

Event Timeline