2
0
Fork 0
forked from zynk/zynk

fix: Wikipedia article links use _ for spaces (0.43.2)

This commit is contained in:
Johannes Findeisen 2026-07-26 02:07:13 +02:00
commit f79e4d2cd5
3 changed files with 40 additions and 3 deletions

View file

@ -1,3 +1,7 @@
2026.07.26 - Fix Wikipedia article links using wrong space encoding. (0.43.2)
- Fixed Wikipedia article links in `!wp` responses using `+` instead of `_` for spaces (e.g. `CLever+Audio+Plug-in` → `CLever_Audio_Plug-in`). The `wp_url_encode()` function was used for both API query parameters (where `+` is correct) and article title URLs (where Wikipedia expects `_`). Added `wp_url_encode_title()` that encodes spaces as underscores for use in article link construction, and switched all article link encodings to use it.
2026.07.26 - Improved Wikipedia results formatting and article extracts. (0.43.1)
- Changed multi-result mode from a single pipe-separated message to individual messages: each result is now sent as its own IRC message (`Title — snippet`) followed by a separate "Read full article: LINK" message. This makes results easier to read in busy channels and ensures each article link is immediately visible.