[RSS Feed/News] phpBB: Attachments in private messages are not imported

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
PHP:

Code:
$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 :(

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom