Post B5ihA7Rb1q9EN9eZrk by hj@shigusegubu.club
(DIR) More posts by hj@shigusegubu.club
(DIR) Post #B5icvzBiWonAtbEPlw by hj@shigusegubu.club
0 likes, 0 repeats
every time i try akkoma-fe it's just so so bad. Everything is outdated. Everything is misaligned. Everything is half-assed. Everything is poorly designed. It's like they don't care about front-end at all.
(DIR) Post #B5idx1yPl1oJmK4UF6 by phnt@fluffytail.org
0 likes, 0 repeats
@hj The top bar changes are crimes against frontend design. Settings profiles profiles are interesting though. And MFM is something I would want to do some time, but it requires writing a proper parser like BBCode, the Akkoma one is a hack.
(DIR) Post #B5idx2A73XAUMbXpTc by hj@shigusegubu.club
0 likes, 0 repeats
@phnt i think settings profiles are obnoxious and our implementation is better. Totally not having a NIH syndrome, totally not.I think even a hack is ok for MFM, since MFM itself is a hack.
(DIR) Post #B5ieHiVjJYCZUtWC9o by phnt@fluffytail.org
0 likes, 0 repeats
@hj MFM only works in text without any formatting, which is something I don't like. I would want it to be a switch you can enable for any input type and it act as a preprocessor that generates the HTML.
(DIR) Post #B5ieHig0hKQQ0mKPBI by hj@shigusegubu.club
0 likes, 0 repeats
@phnt last time I checked MFM was HTML with funky tags, I think.
(DIR) Post #B5iePXD3DSRGlPVcsS by phnt@fluffytail.org
0 likes, 0 repeats
@hj It's just a series of $[something] directives, how hard can it be. Famous last words.
(DIR) Post #B5iePXPoS0eBOzTolk by hj@shigusegubu.club
0 likes, 0 repeats
@phnt I wrote two HTML parsers and one binary parser (for unreal engine 1 (deus ex) .u files), I could easily do MFM. I just need permission.
(DIR) Post #B5igVgbVOtSVXu0aki by phnt@fluffytail.org
0 likes, 0 repeats
@hj You don't need a permission I think. And it is just HTML with funky span tag classes. The MFM syntax is "$[directive1=value,directive2=value,... Post Content]". Here's a FEP that Akkoma implements.There are two parts for this, the BE pre-processing parser that takes input when post has MFM enabled and generates a string with the MFM tags replaced with the HTML representation that is then sent to either another parser (like BBCode) or straight through. The second part is FE that provides the styling for the HTML.For the BE parser, Nimble Parsec used by BBCode is pretty comfy at least to me, Akkoma implements their own lexer and everything.You could implement it fully in FE, but then other frontends like Nicolium wouldn't be able to make use of it easily.
(DIR) Post #B5igVgpgYAnkFsdur2 by hj@shigusegubu.club
0 likes, 0 repeats
@phnt >You don't need a permissioni meant from @lain as he opposes the support.
(DIR) Post #B5igbjU1blIGDIOPei by hj@shigusegubu.club
0 likes, 0 repeats
@phnt @lain IIRC only backend changed needed is putting source text into post content API, I can handle the rest.
(DIR) Post #B5iguMlKJAPjFQN2Tg by phnt@fluffytail.org
0 likes, 0 repeats
@hj @lain There's more to it than that to indicate that the federated Object content is MFM and that it is pre-processed instead of of raw form, but that is mostly it. Still, I would prefer a proper backend parser.
(DIR) Post #B5iguMutja4Pj6qgOe by hj@shigusegubu.club
0 likes, 0 repeats
@phnt @lain if we get raw content i can just check for /\$\[/ regexp
(DIR) Post #B5ihA7E7pvN9hNLorw by mkljczk@fediverse.pl
0 likes, 0 repeats
@hj @phnt @lain i think misskey parses MFM on the frontend only and it makes sense as for some fancier or more unhinged stuff MFM does it needs to be rendered dynamically anywaythe akkoma implementation is pretty incomplete
(DIR) Post #B5ihA7Rb1q9EN9eZrk by hj@shigusegubu.club
0 likes, 0 repeats
@mkljczk @phnt @lain given the nature of MFM (being unhinged and reliant on frontend's CSS) I think it's better to implement it on frontend side.
(DIR) Post #B5ij1o2RUj69mK3H1M by phnt@fluffytail.org
0 likes, 0 repeats
@mkljczk @lain @hj >the akkoma implementation is pretty incompleteYeah, I've looked at it in the past and wasn't satisfied. It being incompatible with anything else than plain text sucks in my opinion.
(DIR) Post #B5ij1oGce0ROUIgb7g by hj@shigusegubu.club
0 likes, 0 repeats
@phnt @lain @mkljczk i'm not sure how to implement MFM that also supports HTML. This feels like disaster waiting to happen.
(DIR) Post #B5ij2Rf6AwC0fVRCBk by caohuak@moon.lonewolf.zone
1 likes, 0 repeats
@hj iirc when I was still using Akkoma two years ago, I noticed that akkoma-fe had almost no updates.
(DIR) Post #B5ijSvCqx7FLpOqp84 by caohuak@moon.lonewolf.zone
0 likes, 0 repeats
@hj admin-fe is obviously even worse than akkoma-fe, I don't know if they fixed this bug.https://akkoma.dev/AkkomaGang/admin-fe/issues/17
(DIR) Post #B5ijSvbfSr614MSdo8 by hj@shigusegubu.club
0 likes, 0 repeats
@caohuak meanwhile in pleroma-fe we're reimplementing admin-fe. Because admin-fe is not salvageable and has no maintainer.
(DIR) Post #B5ijd7XxvReqztabmS by caohuak@moon.lonewolf.zone
1 likes, 0 repeats
@hj yeah I know I use both Mitra and Pleroma.
(DIR) Post #B5il1UTWQix10phAoa by phnt@fluffytail.org
0 likes, 0 repeats
@hj @lain @mkljczk It is a disaster waiting to happen, yes. When it is done on the backend, it's not as bad as the content is still sanitized on the backend.The backend could also parse it in stages so "$[jelly.speed=2s idk] [i]italics[/i] the rest", would first be:<span class="mfm-jelly" data-mfm-jelly="2s">idk</span> [i]italics[/i] the rest and then:<span class="mfm-jelly" data-mfm-jelly="2s">idk</span> <i>italics</i> the rest
(DIR) Post #B5il1UrH0PwwCUo8ps by hj@shigusegubu.club
0 likes, 0 repeats
@phnt @lain @mkljczk i'm mostly concerned with invalid cases like <span>$[whatever </span>]but IMO at the bottom of it MFM is a flavor of markdown, so it makes sense it would be separate content type. We don't mix BBCode or HTML with Markdown (which already supports raw HTML, generally)
(DIR) Post #B5ilyI6C5WgDiIp1e4 by i@declin.eu
0 likes, 0 repeats
@phnt @lain @mkljczk @hj mastodon deciding on sending microformats was already bad enough, no more pls
(DIR) Post #B5ilyIIxK4t8LsnDXM by hj@shigusegubu.club
0 likes, 0 repeats
@i @phnt @lain @mkljczk what does that mean
(DIR) Post #B5imCNKZQttvzhGKky by i@declin.eu
0 likes, 0 repeats
@hj @phnt @lain @mkljczk html as a payload for content
(DIR) Post #B5imCNZoWE5ukyOVW4 by hj@shigusegubu.club
0 likes, 0 repeats
@i @phnt @lain @mkljczk so basically just HTML with extra classes?
(DIR) Post #B5io2l2icJZ0Y3SDY0 by lolitechengineer@loli.church
0 likes, 0 repeats
@i@declin.eu @phnt@fluffytail.org @lain@lain.com @mkljczk@pl.fediverse.pl @hj@shigusegubu.club we need to go further. Allow sending arbitrary JavaScript that autoruns in the frontend.It'll be like a cooler version of when everyone was spamming spinning, resized, and colored text a few years ago.Imagine the possibilities.
(DIR) Post #B5io2lFTqrlvBdQPRI by hj@shigusegubu.club
0 likes, 0 repeats
@lolitechengineer @mkljczk @lain @phnt @i poast got hacked because of badly formatted HTML got parsed incorrectly and allowed script tag
(DIR) Post #B5ioU1Lc6WqWw3IAd6 by phnt@fluffytail.org
0 likes, 0 repeats
@i @lain @mkljczk @hj So basically how anything is done on this network? Even hashtags have this and the classes actually differ between Pleroma and Mastodon I think.
(DIR) Post #B5ioU1gspRrO01F9ma by hj@shigusegubu.club
0 likes, 0 repeats
@phnt @i @lain @mkljczk HTML is necessary evil, but you don't have to use HTML as-is, you're supposed to use those microformat classes and transform them into your FE's classes/structures, ideally. Or just support them in FE.
(DIR) Post #B5ioY2Z1WYWZrkTtbM by i@declin.eu
0 likes, 0 repeats
@phnt @lain @mkljczk @hj yes, taking two horrible things and pretending their whole makes the mess better, the activitypub way of development
(DIR) Post #B5ioY2kMqNbAQvmxHc by hj@shigusegubu.club
0 likes, 0 repeats
@i @phnt @lain @mkljczk it's a necessary evil. I don't see a problem with it. Better get used to things being messy.
(DIR) Post #B5iqRjtYDnh68VCpAu by phnt@fluffytail.org
1 likes, 0 repeats
@i @lain @mkljczk @hj Do you have a better way even for something as simple as styling hashtags in post content? Because the second thing you can do is write a parser that looks for #word and wraps that in a tag dynamically.
(DIR) Post #B5iqeUsrLO8hLPxwPo by phnt@fluffytail.org
1 likes, 0 repeats
@hj @lain @mkljczk <span>$[whatever </span>]would result into<span><span class="mfm-whatever"></span></span>.where the last closing span is the one inserted by the parser. An empty span isn't an issue I think, removing the first span is worse, because there now is a closing span tag for nothing.Still, both of those should be sanitized before that matters.
(DIR) Post #B5ir37Kc333tXOgeXI by hj@shigusegubu.club
0 likes, 0 repeats
@phnt @lain @mkljczk one thing i'm really against is mixing up bbcode with mfm, otherwise i'm good with any approach.