someguy123 / fxmastodon Goto Github PK
View Code? Open in Web Editor NEWFxMastodon - A simple webapp which fixes Mastodon embeds on Discord for images, videos, and sensitive content
License: Other
FxMastodon - A simple webapp which fixes Mastodon embeds on Discord for images, videos, and sensitive content
License: Other
I just wanted to inform you that it seems like fxmas.to is currently down for whatever reason
Discord has an issue when directly sharing a toot which contains text and video causing only the video content to be displayed. The same is happening with fxMastodon links. Confirmed the meta data does exist with the text.
The meta content showing the text portion of the toot:
<meta content='Attached: 1 video
Ever wanted your desktop windows to jiggle around on-beat? I wrote a Winamp plugin to solve this important problem.
Download: https://mew.tv/projects/shaker.html
Source: https://git.sr.ht/~juni/shaker' name='description'>
<meta content="Attached: 1 video
Ever wanted your desktop windows to jiggle around on-beat? I wrote a Winamp plugin to solve this important problem.
Download: https://mew.tv/projects/shaker.html
Source: https://git.sr.ht/~juni/shaker" property="og:description">
Some people have requested adding support for other apps such as Calckey, Misskey, Lemmy, maybe GNU Social, etc.
This would likely require some kind of software detection, to figure out what kind of software an instance is running, possibly should assume mastodon first, then if it fails, do detection, cache the detection result for future requests, and then use the APIs / templates designed for that software.
Would probably need to refactor the service into a class + adapter based approach, so that it's possible to easily write adapters for other fediverse software as needed
NOTE: This is a LOW PRIORITY issue, for now it's more important to focus on making the service work best for Mastodon, and only then start to work on adding support for other fediverse software
Currently fxmastodon doesn't handle links like "https://fxmas.to/https://mastodon.redstonelp2.com/@RedstoneLP2/110769740936484914" due to the second "https://" in the URL.
Since most (if not all) "Share link" options include the "https://" it would make using fxmastodon easier for the average user.
I haven't yet looked into it, but am probably gonna do so some time this weekend/next week
At the moment, the service only supports displaying the first image/video in a post
The most likely best fix for this would be what VxTwitter does, which is to take all of the images in a post, and merge them into one single image in a grid:
4 image post:
+------+--------+
| IMG 1 | IMG 2 |
| IMG 3 | IMG 4 |
+------+--------+
2 image post:
+------+--------+
| IMG 1 | IMG 2 |
+------+--------+
3 image post:
+------+--------+
| IMG 1 | IMG 2 |
| IMG 3 |
+------+--------+
This could be achieved using the Pillow library for Python, or another image handling library.
This would require that the embed images are actually served by the application instead of directly linking to them, which may require use of the privex-helpers cache system (via redis or memcached adapter in production) to speed up requests and avoid constantly rendering images unnecessarily.
NOTE: This shouldn't be done for videos, only images. For videos it's best that we continue to display just the first video, as it would be difficult to merge videos into one video, especially due to audio tracks. Videos should probably take priority over images, if a post contains a video, then we display just the video, or possibly we base it off of the first media, i.e. if the first media is an image, we display only the images, if the first media is a video, we display just the first video
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.