ui: fix bugs (#437)

This commit is contained in:
panda authored and GitHub committed 2022-10-12 00:38:42 +08:00
1 parent ebad34a426
commit e87149fd45
4 files changed
+3 -12

No files matched your search

@@ -12,7 +12,7 @@ export default new AutoloadPage('media', async () => {
resolvers.push((html) => html && $(ele).replaceWith($(html)));
};
users.get().forEach((ele) => resolve(ele, { type: 'user', id: +$(ele).text() }));
$dom.find('.typo').get().forEach((el) => {
$dom.find('.typo').addBack('.typo').get().forEach((el) => {
if (el.className.includes('no-media')) return;
$(el).find('a[href]').get().forEach((ele) => {
if ($(ele).parent().hasClass('user-profile-link')) return;