From d02dd373e7f6d5044f646c6b74155dc36a2859d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 26 Oct 2020 14:49:13 -0400 Subject: [PATCH] fix: core does this --- library.js | 9 --------- plugin.json | 1 - 2 files changed, 10 deletions(-) diff --git a/library.js b/library.js index b1ef3a0..cbba4bc 100644 --- a/library.js +++ b/library.js @@ -26,15 +26,6 @@ library.addAdminNavigation = function(header, callback) { 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) { areas = areas.concat([ { diff --git a/plugin.json b/plugin.json index e04b86e..d12bce8 100644 --- a/plugin.json +++ b/plugin.json @@ -2,7 +2,6 @@ "id": "nodebb-theme-persona", "library": "library.js", "hooks": [ - { "hook": "filter:teasers.get", "method": "getTeasers" }, { "hook": "filter:widgets.getAreas", "method": "defineWidgetAreas" }, { "hook": "filter:config.get", "method": "getThemeConfig" }, { "hook": "static:app.load", "method": "init" },