Comments (1)
Reproduced this on latest main
code in addition to 4.2.8. The cause of this issue is the use of the default decoding flavor from HTMLEntitites here: https://github.com/mastodon/mastodon/blob/main/app/lib/link_details_extractor.rb#L285 .
The curly bracket entity codes (among others) are not included in the XHTML1 or HTML4 specs, only the entity numbers for them are. Thus a site with {
(one of two entity numbers for left curly bracket) renders appropriately but {
does not.
HTMLEntities supports an expanded set of entity names from a variety of public domain sources, as detailed here. Simply instantiating the HTMLEntities decoder with :expanded
instead of the default flavor should resolve this issue for any entities whose names are not in the XHTML1 or HTML4 specs.
Do note that, because link details are extracted and stored on post, that this will not retroactively fix the display for already posted links. If that same link is then posted again it will fix for all cards since the details are stored based on the link name and a fresh post would trigger a new extraction.
from mastodon.
Related Issues (20)
- Invalid token HOT 7
- Feature request: show why a message is shown in web UI HOT 4
- Expose report categories via API HOT 5
- Improve Streaming's Server Sent Events code HOT 1
- tootctl domains purge fails when an account has notifications allowed
- Advertise deprecated endpoints via Deprecation headers ( draft-ietf-httpapi-deprecation-header-03 ) HOT 3
- Adjust Development > Applications form to more clearly support multiple redirect_uris
- Keyboard focus gets lost when opening a post with media using the keyboard shortcut
- Very bad user experience, thread context lost, when someone replies to a post that is locally blocked
- "If you trust this link, click it to continue." breaks embeds, adds friction HOT 1
- Notifications are big in screen size & data volume - Collapse them instead HOT 1
- Video attachments from RSS feeds can't play in Chromium web browsers (Android)
- Server signed Actor Delete activities HOT 3
- self-destructing server returns 500 instead of 410 to activitypub requests HOT 1
- Pre-emptive account level blocking (e.g. threads) HOT 2
- Tracking issue RE: Paperclip, Azure EOL, rest client, etc HOT 7
- Rename read:me scope to "profile"
- A vertical video filmed on a samsung mobile phone appears horizontal (cropped, not rotated) HOT 5
- How does the image get stored/loaded? HOT 1
- Link previews don’t respect the post’s language settings
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mastodon.