Feature Request: Links to show Preview when posting on Discord

 avatar
{"ops":[{"insert":"As the title says, I think it would be cool if when posting a link to discord, that it shows a preview of things, like the deckname, maybe the chosen picture, and some other information that makes sense.\n\nFor example, if I post a link to my Shabraz deck, https://archidekt.com/decks/514420#[EDH/B]_Shabraz,_When_I_Have_My_Blood_Moon_I_Play_This_Deck_To_Feel_Better:\n"},{"attributes":{"link":"https://imgur.com/a/CRZfTve"},"insert":"https://imgur.com/a/CRZfTve"},{"insert":"\n\n"},{"attributes":{"background":"#242221"},"insert":"I think that would make archidekt decks on discord stand out more."},{"insert":"\n\n"},{"attributes":{"background":"#242221"},"insert":"And as always, love the new features you've created so far. <3"},{"insert":"\n"}]}
0
 avatar
{"ops":[{"insert":"Oh man, this one makes me so sad because we'd "},{"attributes":{"bold":true},"insert":"love"},{"insert":" to have this. Unfortunately, due to the underlying technology we used to build the site (an SPA for anyone interested), opening preview links isn't possible to implement. We've talked about changing pieces of the underlying technology for certain pages to allow for it, but doing so is a pretty substantial undertaking that would take a significant number of resources on our end. \n\nThat said, this sort of thing is precisely what we created the new Feature Voting subforum for. I've tossed it up there-- if it gets enough interest, we'll be more likely to try to make the time to make it work. The tradeoff of course is just that other features would get pushed back in the meantime. Regardless, thank you for reaching out with the suggestion! \n\n"},{"attributes":{"link":"https://archidekt.com/forum/thread/2340857/1"},"insert":"https://archidekt.com/forum/thread/2340857/1"},{"insert":"\n"}]}
0
 avatar
{"ops":[{"insert":"Thanks for adding it there!\n\nI didn't realize this was an SPA (or what an SPA even is haha), but I see that that can pose a challenge.\n\nWith SPA, I see the issue is that the deck information is only available in the after load of the page. I.e.: you first load a small portion of the page, set some refresh settings, load the sandbox, and then you load the information by accessing the API, which also ensures decks aren't accessed that are not public. To make a preview link you'd need to provide the information like title in the meta tags of the initial document that is loaded, which is what I understand is the problem here. \n\nSo to solve this, you'd need to load information from the API in the initial call, which can cost some initial load time, and would need error handling for hidden deck lists, and then put that information into the meta tags (an additional advantage here would be that it becomes better parse able by Google, which I assume currently doesn't really find deck lists). But other than those tags, you wouldn't need to load additional elements of the html page, so whatever is what you use to provide the initial html code, should be able to handle this call before the initial load. Considering the API is accessible at any time and provides error codes itself, I assume this can be handled by this. But you wouldn't need to completely change the code I imagine. \n\nI hope it gets upvoted so you can work on this, and I'm looking forward to the implementation if it is <3\n"}]}
0
Support us on Patreon to remove ads