Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Releases: WildPHP/module-linksniffer

Beta 3: Fix quotes parsing

25 Aug 00:25
Compare
Choose a tag to compare
Pre-release

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

23 Aug 14:36
Compare
Choose a tag to compare
HOTFIX for Beta 1 Pre-release
Pre-release

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

29 Apr 14:24
Compare
Choose a tag to compare
Point to the right exception in the API libraries

Signed-off-by: Yoshi2889 <rick.2889@gmail.com>

Properly handle escaped html characters

25 Apr 19:51
Compare
Choose a tag to compare
Fix escaped html characters; they are now correctly transformed.

Signed-off-by: Yoshi2889 <rick.2889@gmail.com>

Support for title tags with attributes

25 Apr 17:00
Compare
Choose a tag to compare

This fixes getting titles for e.g. Facebook links.

Use notices instead of PRIVMSGs to show link data

10 Apr 10:07
Compare
Choose a tag to compare
Remove debugging code...oops

Signed-off-by: Yoshi2889 <rick.2889@gmail.com>

Bugfix #3: Fix a crash on recent API

09 Apr 20:06
Compare
Choose a tag to compare

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

03 Jan 22:57
Compare
Choose a tag to compare

Module now handles all guzzle exceptions and timeouts. Should be much more stable.

Bugfix: Catch Guzzle Exceptions

03 Jan 22:22
Compare
Choose a tag to compare

GuzzleHTTP can throw exceptions when an error occurs during the request.

This release now catches those.

Caching; Code refactor

02 Jan 01:35
Compare
Choose a tag to compare

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.