fix local instance domain name in mention links
This commit is contained in:
parent
fd0d3d4682
commit
4f79e4b215
1 changed files with 2 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ import {
|
||||||
} from '../../services/user_highlighter/user_highlighter.js'
|
} from '../../services/user_highlighter/user_highlighter.js'
|
||||||
|
|
||||||
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
import { useMergedConfigStore } from 'src/stores/merged_config.js'
|
||||||
|
import { useInstanceStore } from 'src/stores/instance.js'
|
||||||
import { useUserHighlightStore } from 'src/stores/user_highlight.js'
|
import { useUserHighlightStore } from 'src/stores/user_highlight.js'
|
||||||
|
|
||||||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||||
|
|
@ -90,7 +91,7 @@ const MentionLink = {
|
||||||
return (
|
return (
|
||||||
this.user &&
|
this.user &&
|
||||||
(this.userNameFullUi.split('@')[1] ||
|
(this.userNameFullUi.split('@')[1] ||
|
||||||
this.$store.getters.instanceDomain)
|
useInstanceStore().instanceDomain)
|
||||||
)
|
)
|
||||||
},
|
},
|
||||||
userNameFull() {
|
userNameFull() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue