Fix link and description

This commit is contained in:
Dima-1 2021-01-20 19:57:25 +02:00
parent 1fdb5c68f6
commit ed0716de48

View file

@ -192,7 +192,8 @@ public class TravelObfHelper implements TravelHelper {
GPXFile gpxFile = null; GPXFile gpxFile = null;
List<Amenity> pointList = getPointList(article); List<Amenity> pointList = getPointList(article);
if (!Algorithms.isEmpty(pointList)) { if (!Algorithms.isEmpty(pointList)) {
gpxFile = new GPXFile(article.getTitle(), article.getLang(), ""); gpxFile = new GPXFile(article.getTitle(), article.getLang(), article.getContent());
gpxFile.metadata.link = TravelArticle.getImageUrl(article.getImageTitle(), false);
for (Amenity amenity : pointList) { for (Amenity amenity : pointList) {
WptPt wptPt = createWptPt(amenity, article.getLang()); WptPt wptPt = createWptPt(amenity, article.getLang());
gpxFile.addPoint(wptPt); gpxFile.addPoint(wptPt);