commit
0cd9a2db6e
|
@ -138,6 +138,12 @@ And here I am. Building a Mastodon web client.
|
||||||
- [Statuzer](https://statuzer.com/)
|
- [Statuzer](https://statuzer.com/)
|
||||||
- [More...](https://github.com/hueyy/awesome-mastodon/#clients)
|
- [More...](https://github.com/hueyy/awesome-mastodon/#clients)
|
||||||
|
|
||||||
|
## 💁♂️ Notice to all other social media client developers
|
||||||
|
|
||||||
|
Please, please copy the UI ideas and experiments from this app. I think some of them are pretty good and it would be great if more apps have them.
|
||||||
|
|
||||||
|
If you're not a developer, please tell your favourite social media client developers about this app and ask them to copy the UI ideas and experiments.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
[MIT](https://cheeaun.mit-license.org/).
|
[MIT](https://cheeaun.mit-license.org/).
|
||||||
|
|
|
@ -965,7 +965,12 @@ function Status({
|
||||||
'a[href]:not(.u-url):not(.mention):not(.hashtag)',
|
'a[href]:not(.u-url):not(.mention):not(.hashtag)',
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
.filter((a) => isMastodonLinkMaybe(a.href))
|
.filter((a) => {
|
||||||
|
const url = a.href;
|
||||||
|
const isPostItself =
|
||||||
|
url === status.url || url === status.uri;
|
||||||
|
return !isPostItself && isMastodonLinkMaybe(url);
|
||||||
|
})
|
||||||
.forEach((a, i) => {
|
.forEach((a, i) => {
|
||||||
unfurlMastodonLink(currentInstance, a.href).then(
|
unfurlMastodonLink(currentInstance, a.href).then(
|
||||||
(result) => {
|
(result) => {
|
||||||
|
@ -1076,6 +1081,9 @@ function Status({
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!!card &&
|
{!!card &&
|
||||||
|
card?.url !== status.url &&
|
||||||
|
card?.url !== status.uri &&
|
||||||
|
/^https/i.test(card?.url) &&
|
||||||
!sensitive &&
|
!sensitive &&
|
||||||
!spoilerText &&
|
!spoilerText &&
|
||||||
!poll &&
|
!poll &&
|
||||||
|
|
Loading…
Reference in a new issue