mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-18 14:31:19 +02:00
[ticket/14838] Do not query full attachments table in feeds
The fetch_attachments() will also now throw a runtime exception if a feed tries to do this nonetheless. PHPBB3-14838
This commit is contained in:
@@ -91,6 +91,8 @@ class topic extends \phpbb\feed\post_base
|
||||
|
||||
function get_sql()
|
||||
{
|
||||
parent::fetch_attachments();
|
||||
|
||||
$this->sql = array(
|
||||
'SELECT' => 'p.post_id, p.post_time, p.post_edit_time, p.post_visibility, p.post_subject, p.post_text, p.bbcode_bitfield, p.bbcode_uid, p.enable_bbcode, p.enable_smilies, p.enable_magic_url, p.post_attachment, ' .
|
||||
'u.username, u.user_id',
|
||||
|
Reference in New Issue
Block a user