fix: core does this

main
Barış Soner Uşaklı 4 years ago
parent 5dcf45b340
commit d02dd373e7

@ -26,15 +26,6 @@ library.addAdminNavigation = function(header, callback) {
callback(null, header); callback(null, header);
}; };
library.getTeasers = function(data, callback) {
data.teasers.forEach(function(teaser) {
if (teaser && teaser.content) {
teaser.content = striptags(teaser.content, ['img']);
}
});
callback(null, data);
};
library.defineWidgetAreas = function(areas, callback) { library.defineWidgetAreas = function(areas, callback) {
areas = areas.concat([ areas = areas.concat([
{ {

@ -2,7 +2,6 @@
"id": "nodebb-theme-persona", "id": "nodebb-theme-persona",
"library": "library.js", "library": "library.js",
"hooks": [ "hooks": [
{ "hook": "filter:teasers.get", "method": "getTeasers" },
{ "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas" }, { "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas" },
{ "hook": "filter:config.get", "method": "getThemeConfig" }, { "hook": "filter:config.get", "method": "getThemeConfig" },
{ "hook": "static:app.load", "method": "init" }, { "hook": "static:app.load", "method": "init" },

Loading…
Cancel
Save