diff --git a/src/components/user_list_popover/user_list_popover.js b/src/components/user_list_popover/user_list_popover.js index 6f79939da..440fe7694 100644 --- a/src/components/user_list_popover/user_list_popover.js +++ b/src/components/user_list_popover/user_list_popover.js @@ -4,6 +4,9 @@ import RichContent from 'src/components/rich_content/rich_content.jsx' import UnicodeDomainIndicator from '../unicode_domain_indicator/unicode_domain_indicator.vue' import { useMergedConfigStore } from 'src/stores/merged_config.js' +import { useInstanceStore } from 'src/stores/instance.js' + +import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator' import { library } from '@fortawesome/fontawesome-svg-core' import { faCircleNotch } from '@fortawesome/free-solid-svg-icons' @@ -29,6 +32,15 @@ const UserListPopover = { return useMergedConfigStore().mergedConfig.nonSquareEmoji }, }, + methods: { + generateProfileLink(user) { + return generateProfileLink( + user.id, + user.screen_name, + useInstanceStore().restrictedNicknames, + ) + }, + } } export default UserListPopover diff --git a/src/components/user_list_popover/user_list_popover.vue b/src/components/user_list_popover/user_list_popover.vue index dffce7de8..3a93b9089 100644 --- a/src/components/user_list_popover/user_list_popover.vue +++ b/src/components/user_list_popover/user_list_popover.vue @@ -10,8 +10,9 @@ - @@ -32,7 +33,7 @@ {{ user.screen_name_ui }} - +