Is this better? I think it's better (and it's a very smoll change actually)

#akkomadev

I'm playing with Akkoma again, and it seems fixing MFM is possible \o/

Context in this issue https://akkoma.dev/AkkomaGang/akkoma/issues/381#issuecomment-10681

There's some work to get it all working, and it won't be for today any more, but I have a proof of concept here, so I'm happy with that at least  

Deeper explanation:

  • We don't add everything to the style attribute. Instead we provide a class for what type of MFM and attributes for the MFM attributes. This needs to change in the MfmParser Encoder.
  • The attributes and classes need to be allowed through the scrubber.
  • Some CSS needs to be added to select on the classes and attributes.

Here's the CSS for flip

.StatusBody .mfm-flip { display: inline-block; transform: scaleX(-1); } .StatusBody .mfm-flip[data-mfm-v] { display: inline-block; transform: scaleY(-1); } .StatusBody .mfm-flip[data-mfm-v][data-mfm-h] { display: inline-block; transform: scale(-1); }

And here's the HTML representation of the content

<span class="mfm mfm-flip">example</span> <span class="mfm mfm-flip" data-mfm-v="true">example</span> <span class="mfm mfm-flip" data-mfm-v="true" data-mfm-h="true">example</span>

There's still the question if these are proper naming conventions, so if someone has strong feelings about it, feel free to speak up and explain!

#AkkomaDev #FediDev

[bug] See if we can use the `content` for posts, also when it's MFM.

### Your setup From source ### Extra details _No response_ ### Version _No response_ ### PostgreSQL version _No response_ ### What were you trying to do? Generally when we send posts between servers, the content field uses html. As I understand it, with MFM we don't use the content becau...

Akkoma Development
Are there frontend only versions of the MastodonFE and the AkkomaFE? Looking to implement them into #iceshrimp. #fedidev #mastodondev #akkomadev #firefishdev
Do you know about magnet links for torrents? I'm trying to think of a word/symbol that would represent this idea for fedi.

So imagine a link that you can click, no matter which site you see the link on, and it opens on your server. To view a fedi user account, or a post.

I think people will need a name to understand what this does, and I worry the technical name of 'web+ap URL protocol' is not catchy enough. What could it be called?

'fedi magnet links'?
maybe Maglev to connote the idea of travel? (https://portend.place/notice/AY3jRcVwj6uqxkaAhE)
something about zap or lightning?
a dart, a target?
something about the network graph, nodes?

see my post about the code changes in Akkoma related to this -
https://portend.place/notice/AXfa06xMeen4I9wAzI

@SoniEx2 any thoughts?

#FediDev #Akkoma #AkkomaDev #WebDev
smitten (@[email protected])

@shockwaver @SoniEx2 @charlotte Oh I have an idea, what about 'Maglev'? - it's reminiscent of magnet links without being the same word - it can be paired with readily accessible icons, or even a ...

It’s possible to create a link to someone’s profile, but without opening the profile on their home server. You can pass it to your own server which will open it locally (so you can follow them, etc). This relies on web-based protocol handlers which are a browser feature.

To get Akkoma prepped to handle web+ap:// URLs, apply the changes from this PR, which will create ProtocolHandlerController and a new API route.

This adds a new route at /.well-known/protocol-handler, which will receive the target parameter. See the draft spec for more information on this.

After creating the endpoint you have to also register the handler with the browser. Open your browser console and enter:

navigator.registerProtocolHandler( "web+ap", `${window.origin}/.well-known/protocol-handler?target=%s`, "ActivityPub handler", );

You have to click a confirmation button too, look near the URL bar.

Then you’re all set. You will be able to see my profile on your server by visiting this link:

web+ap://portend.place/users/smitten

You can also view posts (see video) with links formatted like:

web+ap://portend.place/objects/ad803022-f201-4b39-a233-128a8f41f44b

#akkoma #akkomaDev #activityPub

Web-based protocol handlers - Web APIs | MDN

It's fairly common to find web pages link to resources using non-http protocols. An example is the mailto: protocol:

Does anyone have experience getting Keycloak auth working with Akkoma? I can’t seem to get it working..

/cc #fediadmin #keycloak #oauth #ueberauth #akkoma #akkomadev

Akkoma

Thinking about trying to get into fedi development/bug fixes, but unsure how to go about setting up a test environment locally. My current plan is to have a VM for each server (probably two to start) with a shared folder for the actual project repo so that I can use my host machine for coding.

If you’re a fedi developer, what is your workflow like?

#fedidev #akkoma #akkomadev #pixelfeddev #mastodondev

would you like to live deliciously

i've been working on this one for months. i had to learn a new codebase and language from scratch just to fix this bug. as you can see from the commit message it's A PRETTY FUCKIN BAD ONE

if anyone upstream reads the #AkkomaDev tag please steal this one commit if nothing else

Alright!

The good news is I got portable image descriptions working!

The bad news is... I don't like the way it's done at all :/ Basically it first uploads the image while composing the post. But on posting you first download the attachment to change the exif data and then re upload again. So that's three roundtrips!

This also means the time between pressing post and the post actually going through can take a time long enough to give the feeling of something being wrong because it's also down/uploading the image... I'm not really sure yet how to handle this better :(

If someone wants to try already, use these modules. You can place them in `instance/modules/`, restart the server, then add them via admin-fe (or via config files before restarting). Admin-fe > Settings > MRF > there you add `WriteImageDescriptionToExifData` to the policies. Then Admin-fe > Settings > Upload > add `Exiftool.ReadDescription` to Filters. Don't forget to press Submit.

#pleromadev #akkomadev