mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +00:00
(converter) Set feature flags appropriately on stackexchange posts
This commit is contained in:
parent
e5cee1f46d
commit
5de37cb820
@ -131,12 +131,10 @@ public class StackexchangeSideloader implements SideloadSource {
|
|||||||
PubDate.toYearByte(ret.details.pubYear),
|
PubDate.toYearByte(ret.details.pubYear),
|
||||||
(int) -ret.details.quality,
|
(int) -ret.details.quality,
|
||||||
EnumSet.of(DocumentFlags.GeneratorDocs));
|
EnumSet.of(DocumentFlags.GeneratorDocs));
|
||||||
ret.details.features.add(HtmlFeature.JS);
|
ret.details.features = EnumSet.of(HtmlFeature.JS, HtmlFeature.TRACKING);
|
||||||
ret.details.features.add(HtmlFeature.TRACKING);
|
|
||||||
|
|
||||||
ret.details.metadata.withSizeAndTopology(10000, 0);
|
ret.details.metadata.withSizeAndTopology(10000, 0);
|
||||||
|
|
||||||
ret.details.features = EnumSet.noneOf(HtmlFeature.class);
|
|
||||||
ret.details.generator = GeneratorType.DOCS;
|
ret.details.generator = GeneratorType.DOCS;
|
||||||
ret.details.title = StringUtils.truncate(post.title(), 128);
|
ret.details.title = StringUtils.truncate(post.title(), 128);
|
||||||
ret.details.description = StringUtils.truncate(doc.body().text(), 255);
|
ret.details.description = StringUtils.truncate(doc.body().text(), 255);
|
||||||
|
Loading…
Reference in New Issue
Block a user