This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/ext/link_scan/info.php

29 lines
1,001 B
PHP
Raw Normal View History

2024-01-16 10:56:53 +00:00
<?php
declare(strict_types=1);
namespace Shimmie2;
class LinkScanInfo extends ExtensionInfo
{
public const KEY = "link_scan";
public string $key = self::KEY;
public string $name = "Link Scan";
public string $url = self::SHIMMIE_URL;
public array $authors = self::SHISH_AUTHOR;
public string $license = self::LICENSE_GPLV2;
public string $description = "Find posts that are referenced in a block of text";
2024-01-16 13:29:29 +00:00
public ?string $documentation = "
With this extension enabled, you can paste a block of text into
the search field, and the code will scan the text for URLs
referencing the site, and show them as search results
<p>By default scan-for-URLs mode will be activated if somebody
searches for text which includes <code>http://</code>
or <code>https://</code> - but you can change this by setting
<code>link_scan_trigger</code> in the config table, eg to
<code>https?://www.mysite.com/</code>
";
2024-01-16 10:56:53 +00:00
}