Use DISTINCT on LazyVariableComputer::getLinksFromDB

A protocol-relative URL has two entries for el_to in externallinks table,
the different is on the el_index colum

Bug: T314373
Change-Id: I3d6229aaa10a089baf15d5ba3407f6a8870429e3
This commit is contained in:
Umherirrender 2022-07-31 16:27:20 +02:00
parent a017d73509
commit 9c3fc24f85

View file

@ -415,7 +415,8 @@ class LazyVariableComputer {
'externallinks',
'el_to',
[ 'el_from' => $id ],
__METHOD__
__METHOD__,
[ 'DISTINCT' ]
);
}