feat: add community name in crosspost draft

This commit is contained in:
Xyphyn committed 2023-10-07 18:56:41 -07:00
1 parent 4fbf0a876b
commit de8a01e522
4 files changed
+60 -60

No files matched your search

@@ -185,7 +185,9 @@
<MenuButton
on:click={() => {
setSessionStorage('postDraft', {
body: `cross-posted from: ${post.post.ap_id}\n${
body: `cross-posted from: ${post.post.ap_id} (!${
post.community.name
}@${new URL(post.community.actor_id).hostname})\n${
post.post.body
? '>' + post.post.body.split('\n').join('\n> ')
: ''