[nitter] use other hook for the addon

This enables the addon to also replace links in the attached preview with the
Nitter server. **BUT** it requires the addon to be reloaded manually by the
nodes admin.
This commit is contained in:
Tobias Diekershoff 2021-10-01 17:04:33 +02:00
parent d893ea016d
commit 1ec669ce9a

View file

@ -30,7 +30,7 @@ use Friendica\DI;
function nitter_install()
{
Addon::registerHook ('prepare_body', 'addon/nitter/nitter.php', 'nitter_render');
Addon::registerHook ('prepare_body_final', 'addon/nitter/nitter.php', 'nitter_render');
}
/* Handle the send data from the admin settings