Commit 447478a7 authored by Developer's avatar Developer 🥊

Merge branch 'mentions-fix' into 'develop'

Make mention links internal, fixes #74

Closes #74

See merge request gab/social/gab-social!34
parents c6f8f4fa 524a438a
...@@ -45,7 +45,7 @@ export default class StatusContent extends React.PureComponent { ...@@ -45,7 +45,7 @@ export default class StatusContent extends React.PureComponent {
} }
link.classList.add('status-link'); link.classList.add('status-link');
let mention = this.props.status.get('mentions').find(item => link.href === `/${item.get('acct')}`); let mention = this.props.status.get('mentions').find(item => link.href === `${item.get('url')}`);
if (mention) { if (mention) {
link.addEventListener('click', this.onMentionClick.bind(this, mention), false); link.addEventListener('click', this.onMentionClick.bind(this, mention), false);
...@@ -139,7 +139,7 @@ export default class StatusContent extends React.PureComponent { ...@@ -139,7 +139,7 @@ export default class StatusContent extends React.PureComponent {
const { status, reblogContent } = this.props; const { status, reblogContent } = this.props;
const properContent = status.get('contentHtml'); const properContent = status.get('contentHtml');
return reblogContent return reblogContent
? `${reblogContent} <div class='status__quote'>${properContent}</div>` ? `${reblogContent} <div class='status__quote'>${properContent}</div>`
: properContent; : properContent;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment