PollListItem freed from noticeListItemAdapter clutches
In the future, use events for formatting microapp notices, more specifically through the plugin's function "showNoticeContent" or similar, which is called from MicroAppPlugin, which is extended from ActivityHandlerPlugin.
This commit is contained in:
@@ -97,11 +97,10 @@ 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();
|
||||
|
Reference in New Issue
Block a user