diff options
| author | Henry Jameson <me@hjkos.com> | 2021-06-08 14:34:47 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2021-06-08 14:34:47 +0300 |
| commit | 2f383c2c0197b94b30fdc4c5e0c742c7e104be20 (patch) | |
| tree | 7b4b025a8f4f32fb413ad617f7c9e74b72ae2c16 /src/components/status/status.js | |
| parent | 73127f0e2587ae2e06c3480451e9ea7fce3ce4c7 (diff) | |
moved mentions into a separate component - MentionLine, added collapsing
of mentions when there's too many of 'em
Diffstat (limited to 'src/components/status/status.js')
| -rw-r--r-- | src/components/status/status.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/components/status/status.js b/src/components/status/status.js index 7d2ec514..d921f625 100644 --- a/src/components/status/status.js +++ b/src/components/status/status.js @@ -13,6 +13,7 @@ import RichContent from 'src/components/rich_content/rich_content.jsx' import StatusPopover from '../status_popover/status_popover.vue' import UserListPopover from '../user_list_popover/user_list_popover.vue' import EmojiReactions from '../emoji_reactions/emoji_reactions.vue' +import MentionsLine from 'src/components/mentions_line/mentions_line.vue' import MentionLink from 'src/components/mention_link/mention_link.vue' import generateProfileLink from 'src/services/user_profile_link_generator/user_profile_link_generator' import { highlightClass, highlightStyle } from '../../services/user_highlighter/user_highlighter.js' @@ -74,7 +75,8 @@ const Status = { EmojiReactions, StatusContent, RichContent, - MentionLink + MentionLink, + MentionsLine }, props: [ 'statusoid', @@ -105,9 +107,6 @@ const Status = { muteWords () { return this.mergedConfig.muteWords }, - mentionsOldPlace () { - return this.mergedConfig.mentionsOldPlace - }, showReasonMutedThread () { return ( this.status.thread_muted || @@ -164,6 +163,9 @@ const Status = { muteWordHits () { return muteWordHits(this.status, this.muteWords) }, + mentionsOldPlace () { + return this.mergedConfig.mentionsOldPlace + }, mentions () { return this.statusoid.attentions.filter(attn => { return attn.screen_name !== this.replyToName && |
