diff --git a/library.js b/library.js index 8201658..7710b68 100644 --- a/library.js +++ b/library.js @@ -186,3 +186,8 @@ library.filterMiddlewareRenderHeader = async function (hookData) { return hookData; }; +library.filterTeasersConfigureStripTags = function (hookData) { + // teasers have a stretched-link to go to last post, the anchors in them are not clickable + hookData.tags.push('a'); + return hookData; +}; diff --git a/plugin.json b/plugin.json index 96d5e2a..9a5bb19 100644 --- a/plugin.json +++ b/plugin.json @@ -8,7 +8,8 @@ { "hook": "filter:settings.get", "method": "getAdminSettings"}, { "hook": "filter:user.saveSettings", "method": "saveUserSettings" }, { "hook": "filter:user.profileMenu", "method": "addProfileItem" }, - { "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" } + { "hook": "filter:middleware.renderHeader", "method": "filterMiddlewareRenderHeader" }, + { "hook": "filter:teasers.configureStripTags", "method": "filterTeasersConfigureStripTags"} ], "scripts": [ "public/harmony.js" diff --git a/templates/partials/categories/lastpost.tpl b/templates/partials/categories/lastpost.tpl index 2d485fd..aea1431 100644 --- a/templates/partials/categories/lastpost.tpl +++ b/templates/partials/categories/lastpost.tpl @@ -4,9 +4,7 @@
{buildAvatar(posts.user, "18px", true, "avatar-tooltip")} - +
diff --git a/templates/partials/topics_list.tpl b/templates/partials/topics_list.tpl index e3baa17..9593cad 100644 --- a/templates/partials/topics_list.tpl +++ b/templates/partials/topics_list.tpl @@ -111,11 +111,10 @@ {{{ if ./teaser.pid }}}
- + {./teaser.content}
{{{ end }}}