Little bug fix + Default link for "Manage" action on filter-users

This commit is contained in:
Bofh 2022-12-15 00:05:12 +01:00
parent 695fefe5ab
commit e99c1bfc89
2 changed files with 2 additions and 1 deletions

View File

@ -214,7 +214,7 @@
<button onclick="if ({do.js}.users.suspend('{id}')) { <button onclick="if ({do.js}.users.suspend('{id}')) {
E.element('.item[data-id=&quot;{id}&quot;]').classList.add('suspended'); E.element('.item[data-id=&quot;{id}&quot;]').classList.add('suspended');
this.querySelector('span'),innerText = 'Suspended'}" this.querySelector('span').innerText = 'Suspended'}"
title="Suspend this user on the instance" title="Suspend this user on the instance"
class="btn mid red"><i class="fa fa-ban fa-fw"></i> class="btn mid red"><i class="fa fa-ban fa-fw"></i>
<span>Suspend</span></button> <span>Suspend</span></button>

View File

@ -332,6 +332,7 @@ window.view.instance = {
tpl = tpl.replaceAll('{mastodon:fields}', _fields); tpl = tpl.replaceAll('{mastodon:fields}', _fields);
} else tpl = tpl.replaceAll('{mastodon:fields}', ''); } else tpl = tpl.replaceAll('{mastodon:fields}', '');
} }
tpl = tpl.replaceAll('{accountAdminLink}', 'javascript:void(0)');
tpl = tpl.replaceAll('{note}', it.note.trim() === '' ? tpl = tpl.replaceAll('{note}', it.note.trim() === '' ?
'&lt;empty&gt;' : window.view.instance.html_add_search_spans( '&lt;empty&gt;' : window.view.instance.html_add_search_spans(
html2text(it.note), atob(filter.profile))); html2text(it.note), atob(filter.profile)));