feat: basic mutli-accounts support
This commit is contained in:
parent
24c573ccf0
commit
241b28241c
15 changed files with 170 additions and 34 deletions
|
@ -8,9 +8,6 @@ import { RouterLink } from 'vue-router'
|
|||
type Node = DefaultTreeAdapterMap['childNode']
|
||||
type Element = DefaultTreeAdapterMap['element']
|
||||
|
||||
const UserLinkRE = /^https?:\/\/([^/]+)\/@([^/]+)$/
|
||||
const TagLinkRE = /^https?:\/\/([^/]+)\/tags\/([^/]+)$/
|
||||
|
||||
export function defaultHandle(el: Element) {
|
||||
// Redirect mentions to the user page
|
||||
if (el.tagName === 'a' && el.attrs.find(i => i.name === 'class' && i.value.includes('mention'))) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue