X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fmicroappplugin.php;h=53fe5e9995eab4d7bf467c7015d769c8122dbd04;hb=10f2cde0b1d75fa023b00400162cb525e8719514;hp=e034bb9b31fbbd37530dcd0d2d137b26f44969a9;hpb=1ee79dc3791162f7ef9b92befaef597328266ce1;p=quix0rs-gnu-social.git diff --git a/lib/microappplugin.php b/lib/microappplugin.php index e034bb9b31..53fe5e9995 100644 --- a/lib/microappplugin.php +++ b/lib/microappplugin.php @@ -97,16 +97,14 @@ abstract class MicroAppPlugin extends ActivityHandlerPlugin return true; } - $adapter = $this->adaptNoticeListItem($nli); - - if (empty($adapter)) { - throw new ServerException('Could not adapt NoticeListItem'); - } + // Legacy use was creating a "NoticeListItemAdapter", but + // nowadays we solve that using event handling for microapps. + // This section will remain until all plugins are fixed. + $adapter = $this->adaptNoticeListItem($nli) ?: $nli; $adapter->showNotice(); $adapter->showNoticeAttachments(); - $adapter->showNoticeInfo(); - $adapter->showNoticeOptions(); + $adapter->showNoticeFooter(); return false; }