user highlight
This commit is contained in:
parent
eb7cff467e
commit
bc97016ea3
7 changed files with 28 additions and 34 deletions
|
|
@ -18,6 +18,7 @@ import UserPopover from '../user_popover/user_popover.vue'
|
|||
|
||||
import { useInstanceStore } from 'src/stores/instance.js'
|
||||
import { useSyncConfigStore } from 'src/stores/sync_config.js'
|
||||
import { useUserHighlightStore } from 'src/stores/user_highlight.js'
|
||||
|
||||
import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator'
|
||||
|
||||
|
|
@ -184,7 +185,7 @@ const Notification = {
|
|||
userStyle() {
|
||||
const highlight = useSyncConfigStore().mergedConfig.highlight
|
||||
const user = this.notification.from_profile
|
||||
return highlightStyle(highlight[user.screen_name])
|
||||
return highlightStyle(useUserHighlightStore().get(user))
|
||||
},
|
||||
expandable() {
|
||||
return new Set(['like', 'pleroma:emoji_reaction', 'repeat', 'poll']).has(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue