Open macbraughton opened 6 months ago
@macbraughton you can use this link as a workaround:
https://mastodon.social/@aryan02420@mas.to
or you can copy IconMastodon into your main.tsx file:
{ title: "Mastodon", url: "https://somethingotherthanmastodon.social/@denobot", icon: IconMastodon },
but couldn't we just use the title instead?
I think exporting the icon would be the best solution, since title can specific to a language eg "мастодон"
I've noticed that there is a function for rendering the icon for mastodon here: https://github.com/denoland/deno_blog/blob/571a875d774c4043fb0c196134dfac01a2209746/components.tsx#L426
However, when I add it to the
links
as shown in the readme, for example:It's not going to render.
This is a problem, in general, and for me personally because mastodon is a decentralized network and isn't owned by mastodon.social, and the icon will not render for a different url. This is because of the code snippet:
In the source here: https://github.com/denoland/deno_blog/blob/571a875d774c4043fb0c196134dfac01a2209746/components.tsx#L79
Which uses a regex to get the name of the social media site from the
url
to pass to thesocialAppIcons
function.I can understand some possible reasons we want to use the
url
here, but couldn't we just use thetitle
instead? I would issue a pull request but I wanted to understand the mainters' intention here before starting one.