forked from friendica/friendica-addons
[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:
parent
d893ea016d
commit
1ec669ce9a
|
@ -30,7 +30,7 @@ use Friendica\DI;
|
||||||
|
|
||||||
function nitter_install()
|
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
|
/* Handle the send data from the admin settings
|
||||||
|
|
Loading…
Reference in a new issue