diff options
| author | frosty <gabriel@bwaaa.monster> | 2026-03-17 12:07:07 -0400 |
|---|---|---|
| committer | frosty <gabriel@bwaaa.monster> | 2026-03-17 12:07:07 -0400 |
| commit | 8c6632502ff992e80051910451421c55894ed9d8 (patch) | |
| tree | e4a03e8ae45e020627781ff21141626fb0ebedeb /src/Infobox/Wikipedia.c | |
| parent | 5a6ad269745fe8cc8bc874eac4fac2479903028e (diff) | |
| download | omnisearch-8c6632502ff992e80051910451421c55894ed9d8.tar.gz | |
fix: general readability improvements
Diffstat (limited to 'src/Infobox/Wikipedia.c')
| -rw-r--r-- | src/Infobox/Wikipedia.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Infobox/Wikipedia.c b/src/Infobox/Wikipedia.c index 4a46b73..6108bce 100644 --- a/src/Infobox/Wikipedia.c +++ b/src/Infobox/Wikipedia.c @@ -2,6 +2,7 @@ #include "../Cache/Cache.h" #include "../Scraping/Scraping.h" #include "../Utility/HttpClient.h" +#include "Config.h" #include <curl/curl.h> #include <libxml/parser.h> #include <libxml/tree.h> @@ -91,7 +92,7 @@ static void extract_wiki_info(xmlNode *node, InfoBox *info) { } info->extract = strdup((const char *)content); - shorten_summary(&(info->extract), 300); + shorten_summary(&(info->extract), WIKI_SUMMARY_MAX_CHARS); xmlFree(content); } } |
