mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-30 15:57:11 +00:00
Excluding stageteaser image from media page
This commit is contained in:
1 parent
539bca0e5f
commit
4ece8e4541
1 file changed
+3
+3
@@ -315,6 +315,9 @@ public final class HomeServiceUtil {
|
|||||||
boolean first = true;
|
boolean first = true;
|
||||||
for (Iterator<URL> iter = imageURLs.iterator(); iter.hasNext(); ) {
|
for (Iterator<URL> iter = imageURLs.iterator(); iter.hasNext(); ) {
|
||||||
URL imageUrl = iter.next();
|
URL imageUrl = iter.next();
|
||||||
|
if(imageUrl.toString().toLowerCase().contains(THUMBNAIL_IMAGE_URL_SUBSTRING_INDICATOR_CASE_INSENSITIVE)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
if ((first && !iter.hasNext()) || !Util.equalsWithNull(imageUrl, stageImageURL)) {
|
if ((first && !iter.hasNext()) || !Util.equalsWithNull(imageUrl, stageImageURL)) {
|
||||||
result.add(imageUrl);
|
result.add(imageUrl);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user