projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
document dump_to_file and load_from_file
[akkoma]
/
test
/
fixtures
/
misskey
/
mfm_x_format.json
diff --git
a/test/fixtures/misskey/mfm_x_format.json
b/test/fixtures/misskey/mfm_x_format.json
index 31d6e53689a5941625bdf0ce322fed588d4b53db..590e399fe9689ce1865d5d82f738a3992bf9ed16 100644
(file)
--- a/
test/fixtures/misskey/mfm_x_format.json
+++ b/
test/fixtures/misskey/mfm_x_format.json
@@
-3,9
+3,9
@@
"type": "Note",
"attributedTo": "https://misskey.local.live/users/92hzkskwgy",
"summary": null,
"type": "Note",
"attributedTo": "https://misskey.local.live/users/92hzkskwgy",
"summary": null,
- "content": "
<p><a href=\"https://akkoma.local.live/users/akkoma_user\" class=\"u-url mention\">@akkoma_user@akkoma.local.live</a><span> linkifylink </span><a href=\"https://misskey.local.live/tags/dancedance\" rel=\"tag\">#dancedance</a><span> </span><i><span> mfm goes here</span></i><span> <br><br>## aaa</span></p>
",
+ "content": "
this does not get replaced
",
"source": {
"source": {
- "content": "@akkoma_user linkifylink #dancedance $[jelly mfm goes here] \n\n## aaa",
+ "content": "@akkoma_user
@remote_user @full_tag_remote_user@misskey.local.live @oops_not_a_mention
linkifylink #dancedance $[jelly mfm goes here] \n\n## aaa",
"mediaType": "text/x.misskeymarkdown"
},
"published": "2022-07-10T15:37:36.368Z",
"mediaType": "text/x.misskeymarkdown"
},
"published": "2022-07-10T15:37:36.368Z",
@@
-29,6
+29,16
@@
"type": "Mention",
"href": "http://localhost:4001/users/akkoma_user",
"name": "@akkoma_user"
"type": "Mention",
"href": "http://localhost:4001/users/akkoma_user",
"name": "@akkoma_user"
+ },
+ {
+ "type": "Mention",
+ "href": "http://misskey.local.live/users/remote_user",
+ "name": "@remote_user"
+ },
+ {
+ "type": "Mention",
+ "href": "http://misskey.local.live/users/full_tag_remote_user",
+ "name": "@full_tag_remote_user"
}
]
}
}
]
}