Hotfix for bug in profiles

This commit is contained in:
nipos 2018-11-17 12:11:48 +01:00
parent b630910558
commit 497d735f0c
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ function replaceInternalLink(){
$(".h-card > a").each(function(i) {
$(this).attr('href',getRelativeURL($(this).attr('href')));
});
$(".toot_article a,.profile_bio,.follows_profile_bio").each(function(i) {
$(".toot_article a,.profile_bio a,.follows_profile_bio a").each(function(i) {
const pltags = $(this).attr('href').match(/https:\/\/.+..+\/tag\/([a-zA-Z\d_%]+)\/?$/);
if(pltags) {
$(this).attr('target','_self').attr('href','/search?q='+pltags[1]);