- Affected version
- 1.5.2
PHP:
$attachments = $this->sourceDb->fetchAll("
SELECT *
FROM attachments
WHERE attach_id > ? AND attach_id <= ?
AND is_orphan = 0
AND post_msg_id > 0
AND in_message = 0
ORDER BY attach_id
LIMIT {$limit}
", [$state->startAfter, $state->end]);
Attachments with
in_message
= 1 are from private messages and the code ignores them 