cover edited mentions
This commit is contained in:
parent
5f352c4771
commit
fda449bf27
@ -194,7 +194,10 @@ const expandMentions = status => {
|
||||
const fragment = domParser.parseFromString(status.get('content'), 'text/html').documentElement;
|
||||
|
||||
status.get('mentions').forEach(mention => {
|
||||
const mentionFragment = fragment.querySelector(`a[href$="/${mention.get('acct')}"]`);
|
||||
if (mentionFragment) {
|
||||
fragment.querySelector(`a[href$="/${mention.get('acct')}"]`).textContent = `@${mention.get('acct')}`;
|
||||
}
|
||||
});
|
||||
|
||||
return fragment.innerHTML;
|
||||
|
Loading…
Reference in New Issue
Block a user