Releases: WildPHP/module-linksniffer
Beta 3: Fix quotes parsing
The only fix in this release is the parsing of quotes, by properly passing ENT_QUOTES as the quote style for htmlspecialchars_decode().
HOTFIX for Beta 1
No major issues have been encountered, so off we go...
New features:
- [+] Backends allow URLs to be filtered and sent to various services. For instance, you could write a GitHub backend to provide details about a given issue link.
- [+] LinkTitle backend: This backend catches all remaining URLs and simply shows the link title.
- [+] Fully async! The bot will no longer stall while connecting to slow websites.
Bugs fixed:
- [!] Redirects are now followed in the LinkTitle backend, to a depth of 3 (to avoid endless loops). This means the module catches more links than before.
- [!] HOTFIX: Do not explicitly depend on react/http-client 0.5.2
Internal changes:
- [-] Dropped Guzzle in favor of React/Http-Client.
- [-] Reduced size of module core, most logic is now shipping in backends.
Known issues:
- [*] Some characters do not get properly escaped in link titles and will show their Unicode characters.
- [*] Backends cannot yet be set by users or modules, LinkTitle is the only available backend for now.
Fix compatibility with API
Point to the right exception in the API libraries Signed-off-by: Yoshi2889 <rick.2889@gmail.com>
Properly handle escaped html characters
Fix escaped html characters; they are now correctly transformed. Signed-off-by: Yoshi2889 <rick.2889@gmail.com>
Support for title tags with attributes
This fixes getting titles for e.g. Facebook links.
Use notices instead of PRIVMSGs to show link data
Remove debugging code...oops Signed-off-by: Yoshi2889 <rick.2889@gmail.com>
Bugfix #3: Fix a crash on recent API
The isValidLink method was moved from the Remote API to the Validation API. This release corrects the usage in this module.
Bugfix #2: Catch all the exceptions; handle timeouts
Module now handles all guzzle exceptions and timeouts. Should be much more stable.
Bugfix: Catch Guzzle Exceptions
GuzzleHTTP can throw exceptions when an error occurs during the request.
This release now catches those.
Caching; Code refactor
This release is in quick succession to v2.0.1...
What this brings:
- Caching. The module will now cache items for an hour so if the same link is referenced twice in quick succession, the module will refer the cache instead of retrieving the same link.
- A much needed code refactor. Many tools have been moved to a Helper class and can be used elsewhere. This should also improve stability.
- Tests. The module is now automatically tested by Travis whenever a code change is made, against PHP 5.6, 7 and HHVM.
Nothing changes to the end user and no further changes to configuration are needed. Just run composer update to update your bot.