mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-12-21 06:51:19 +08:00
fix(backend): don't include platforms in sitemap urls anymore
This commit is contained in:
parent
1e6a965a6c
commit
35772a7e4d
@ -73,9 +73,7 @@ public class SitemapService extends HangarComponent {
|
||||
final List<ProjectVersionTable> projectVersions = this.projectVersionsDAO.getProjectVersions(p.getId());
|
||||
|
||||
projectVersions.forEach(pv -> {
|
||||
final List<Platform> platforms = this.projectVersionsDAO.getVersionPlatforms(pv.getId());
|
||||
platforms.forEach(platform -> generator.addPage(this.path(userTable.getName(), p.getSlug(), "versions", pv.getVersionString(), platform.name().toLowerCase(Locale.ROOT))));
|
||||
|
||||
generator.addPage(this.path(userTable.getName(), p.getSlug(), "versions", pv.getVersionString()));
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user