(converter) Set feature flags appropriately on stackexchange posts

This commit is contained in:
Viktor Lofgren 2023-11-12 15:48:08 +01:00
parent e5cee1f46d
commit 5de37cb820

View File

@ -131,12 +131,10 @@ public class StackexchangeSideloader implements SideloadSource {
PubDate.toYearByte(ret.details.pubYear),
(int) -ret.details.quality,
EnumSet.of(DocumentFlags.GeneratorDocs));
ret.details.features.add(HtmlFeature.JS);
ret.details.features.add(HtmlFeature.TRACKING);
ret.details.features = EnumSet.of(HtmlFeature.JS, HtmlFeature.TRACKING);
ret.details.metadata.withSizeAndTopology(10000, 0);
ret.details.features = EnumSet.noneOf(HtmlFeature.class);
ret.details.generator = GeneratorType.DOCS;
ret.details.title = StringUtils.truncate(post.title(), 128);
ret.details.description = StringUtils.truncate(doc.body().text(), 255);