mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-11 19:24:01 +02:00
[ticket/12421] Don't parse [attachment] tags if user can't view them
https://tracker.phpbb.com/browse/PHPBB3-12421 PHPBB3-12421
This commit is contained in:
committed by
Tristan Darricau
parent
c7d29fbdb1
commit
f4df3f0aaf
@@ -105,6 +105,13 @@ class topic extends \phpbb\feed\post_base
|
||||
return true;
|
||||
}
|
||||
|
||||
function adjust_item(&$item_row, &$row)
|
||||
{
|
||||
parent::adjust_item($item_row, $row);
|
||||
|
||||
$item_row['forum_id'] = $this->forum_id;
|
||||
}
|
||||
|
||||
function get_item()
|
||||
{
|
||||
return ($row = parent::get_item()) ? array_merge($this->topic_data, $row) : $row;
|
||||
|
Reference in New Issue
Block a user