Lack of interest Thread Condition FIRST_POST should include post id...

This suggestion has been closed automatically because it did not receive enough votes over an extended period of time. If you wish to see this, please search for an open suggestion and, if you don't find any, post a new one.

Jaxel

Well-known member
Line 147 on XenForo_Model_Thread
Code:
			if ($fetchOptions['join'] & self::FETCH_FIRSTPOST)
			{
				$selectFields .= ',
					post.message, post.attach_count';
				$joinTables .= '
					INNER JOIN xf_post AS post ON
						(post.post_id = thread.first_post_id)';
			}

What good is having attach_count if you can't retrieve attachments without a post_id? Shouldn't this be changed to:
Code:
			if ($fetchOptions['join'] & self::FETCH_FIRSTPOST)
			{
				$selectFields .= ',
					post.post_id, post.message, post.attach_count';
				$joinTables .= '
					INNER JOIN xf_post AS post ON
						(post.post_id = thread.first_post_id)';
			}
 
Upvote 0
This suggestion has been closed. Votes are no longer accepted.
Top Bottom