From: Tobias Diekershoff Date: Fri, 1 Oct 2021 15:04:33 +0000 (+0200) Subject: [nitter] use other hook for the addon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1ec669ce9a2840197122bac5a9cbdde6805eac53;p=friendica-addons.git [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. --- diff --git a/nitter/nitter.php b/nitter/nitter.php index 538de2c3..687ea78c 100644 --- a/nitter/nitter.php +++ b/nitter/nitter.php @@ -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