mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 03:03:07 +02:00
Fix htmlToMfm (#3600)
This commit is contained in:
parent
9ee9cf8d81
commit
79ff5888fd
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ export default function(html: string): string {
|
||||||
if ((rel && rel.value.match('tag') !== null) || !href || href.value == txt) {
|
if ((rel && rel.value.match('tag') !== null) || !href || href.value == txt) {
|
||||||
text += txt;
|
text += txt;
|
||||||
// メンション
|
// メンション
|
||||||
} else if (txt.startsWith('@') && !rel || !rel.value.match(/^me /)) {
|
} else if (txt.startsWith('@') && !(rel && rel.value.match(/^me /))) {
|
||||||
const part = txt.split('@');
|
const part = txt.split('@');
|
||||||
|
|
||||||
if (part.length == 2) {
|
if (part.length == 2) {
|
||||||
|
|
Loading…
Reference in a new issue