[COMPONENT][Link] Fix some minor issues with empty headed links, typo in event handler's name, and refactor entity to inside component

This commit is contained in:
2021-12-03 00:44:45 +00:00
parent 56d653d980
commit 70ed04a7db
5 changed files with 30 additions and 33 deletions

View File

@@ -26,7 +26,6 @@ namespace Component\Link;
use App\Core\DB\DB;
use App\Core\Event;
use App\Core\Modules\Component;
use App\Entity;
use App\Entity\Note;
use App\Entity\NoteToLink;
use App\Util\Common;
@@ -56,7 +55,7 @@ class Link extends Component
return Event::next;
}
public function onRenderPlainTextContent(string &$text): bool
public function onRenderPlainTextNoteContent(string &$text): bool
{
$text = $this->replaceURLs($text);
return Event::next;