Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
sysadmin
mattermost
mattermost-webapp
Commits
8911ee7f
Commit
8911ee7f
authored
Jun 14, 2018
by
Joram Wilander
Committed by
Carlos Tadeu Panato Junior
Jun 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not show link previews for system messages (#1338)
parent
702c87e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx
...w/post_attachment_opengraph/post_attachment_opengraph.jsx
+2
-1
No files found.
components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx
View file @
8911ee7f
...
...
@@ -10,6 +10,7 @@ import * as CommonUtils from 'utils/commons.jsx';
import
{
PostTypes
}
from
'
utils/constants.jsx
'
;
import
{
useSafeUrl
}
from
'
utils/url
'
;
import
*
as
Utils
from
'
utils/utils.jsx
'
;
import
{
isSystemMessage
}
from
'
utils/post_utils.jsx
'
;
export
default
class
PostAttachmentOpenGraph
extends
React
.
PureComponent
{
static
propTypes
=
{
...
...
@@ -258,7 +259,7 @@ export default class PostAttachmentOpenGraph extends React.PureComponent {
render
()
{
const
data
=
this
.
props
.
openGraphData
;
if
(
!
data
||
!
data
.
url
||
this
.
state
.
removePreview
)
{
if
(
!
data
||
!
data
.
url
||
this
.
state
.
removePreview
||
isSystemMessage
(
this
.
props
.
post
||
{})
)
{
return
null
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment