API: Use parenthesized join in ApiQueryBase::showHiddenUsersAddBlockInfo
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 3 Dec 2018 14:29:50 +0000 (09:29 -0500)
committerTim Starling <tstarling@wikimedia.org>
Wed, 12 Dec 2018 01:57:13 +0000 (01:57 +0000)
commita793faa88d01dbfea255bcf4632dcabd369914fa
tree1d717d90de418b58a086871db1e5d5339f2d8134
parent2c91754f111b3e45d6ac192a948b904e2016bf16
API: Use parenthesized join in ApiQueryBase::showHiddenUsersAddBlockInfo

The query is LEFT JOINing ipblocks, so we need to properly scope the new
JOINs with the comment and actor tables to get the block reason and
by-actor.

Bug: T210937
Change-Id: I230a4ab78e3ba6e83008b0466eeca8d40013ba3d
includes/api/ApiQueryBase.php