aka freamon

Codeberg: https://codeberg.org/freamon?tab=activity

Anything from https://lemmon.website is me too.

  • 1 Post
  • 154 Comments
Joined 8 months ago
cake
Cake day: March 27th, 2024

help-circle
  • That link shows loads of apps I’ve never heard of, but visiting their repos suggests that they’re dead.

    Since that site helpfully breaks down platforms by programming language, it might be best to target something familiar (or maybe something you want to learn).

    This community is hosted by Lemmy (Rust), and most of the posts and replies will be made by people using that, but they’ll also be some by people using PieFed (python) or MBIN (PHP).




  • Ah, I see now, thanks. That makes more sense than my previous theory, that MBIN users were pathological liars or something. Also, now my previous comment makes me look like an idiot. Oh, well.

    It’s interesting what MBIN does - making the user click a button gives it an extra chance to query the remote site, so it can render it correctly. That’s not the same as taking the markdown and rendering it as HTML, but the end result is nice.

    Elsewhere (like on PieFed), Youtube embedding works well because the URL is in a nice dedicated field, so it’s easy to process, rather than parse through the text of a comment to find it. No idea what’s happening with Tesseract, but it’s just a front-end for Lemmy (albeit a sophisticated one), so my guess is that your link would fail, but since the comments aren’t there, it’s a bit moot.


  • Andrew@piefed.socialtoFediverse@lemmy.worldHappy Thanksgiving!
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    8 days ago

    I’d be surprised if that test worked on any platform in existence. You’re using the markdown to render a static image, and sticking a youtube URL in there. PieFed supports it if the URL ends in something like .mp4, but that’s only because Lemmy have fudged it, and so now people expect it. There’s meant to be a 1:1 relationship between markdown and HTML, metadata transformed into metadata - nothing should have to look at the actual contents to know what tags to produce.

    As for ‘works for me embedded in mbin’ … eh? It looks like this in mbin:

    That’s literally just a external link to youtube. It ‘works’ because it doesn’t - same as for the screenshot itself - instead of embedding it, it just coughs up the link to a remote site. Everything else is rendering it as it is - a broken link to an image that doesn’t exist.

    (maybe ‘originallucifer’ has some fancy app that takes a youtube shorts URL, works out the embed code, and then puts it in an iframe … but like I say, I’d be surprised).


  • A fair bit of Mastodon content doesn’t fit well on Lemmy. One mundane technical reason is that their posts don’t always split up well into the post title / post body that Lemmy expects. A cultural reason is that Mastodon users have a much higher tolerance for other users promoting things like their patreon than Lemmy users do. Even if the posts split well, and is content that Lemmy would like, bringing in the replies to it opens up a spam vector.

    Lemmy let’s you impersonate other users. I used to do that with https://lemmy.world/c/tails@lemmon.website, but stopped because the above-mentioned reasons made it tricky to automate (and because I got bored with it)






  • You can’t, no. PieFed and Lemmy are operating in similar spaces, but are completely different architecturally. PieFed doesn’t yet have an API. Unlike Lemmy (and a lot of other modern web platforms), it doesn’t need one to operate, so copying Lemmy’s to the extent that you’d be able to plug in something like Voyager would be overkill. It would probably also be against the TOS for Voyager (Jerboa actively prevents it’s use with anything other than Lemmy, even if the API is the same).


  • For clarity, it’s not Lemmy that uses ‘Article’. I can’t remember what does, friendica maybe?
    Lemmy uses ‘Page’ for posts, and ‘Note’ for comments.
    Mastodon uses ‘Note’ for both, with ‘inReplyTo’ used to distinguish whether Lemmy would call it a ‘Page’. It uses ‘Question’ for polls.
    Pixelfed also uses ‘Note’, with an ‘Image’ type attachment (I thinks Loops is similar, just with a ‘Video’ type attachment).
    PeerTube uses ‘Video’.
    Funkwhale uses ‘Album’ and ‘Playlist’
    CastoPod uses ‘PodcastEpisode’

    There’s no one universal ActivityPub server because the Fediverse is based on a broken promise: i.e. that you should be able to use whatever service, to interact with whatever other one. You very often can’t, because ActivityPub hasn’t been implemented by each platform as some universal thing, it’s been co-opted by each to serve it’s own purposes. Lemmy best federates with other Lemmy instances, following Lemmy’s way of doing stuff, but a good chuck of the Fediverse follows a different model, and is receiving their activity and quietly discarding it because it doesn’t know what to do with it. If all the Lemmy instances suddenly chose to use a different protocol than ActivityPub, most people wouldn’t notice the difference.






  • How does Piefed handle image attachments, btw?

    For comments: not at all. If a Mastodon user tried to do what I did, with the inline image, nothing would show.

    We could do what I think you’ve done, and regex the details of the attachment into ! [] () Markdown and add it to the text. There’s also a DB relationship between comments and images that isn’t used, but could be, I suppose.

    I’ve never actually seen a Mastodon user try to add an image to something that ended up as a Lemmy comment, tbh, so it’s not something I’ve thought too much about.


  • I just tried with Masto - maybe there’s different versions, but it didn’t work with the one I tried.

    Screenshot:

    It’s probably for the best that this PR doesn’t also convert inline Markdown into an attachment to send out for Mastodon’s benefit, because then there would be the danger of apps that understand both showing two images. It’d be better if Mastodon did the translation when receiving stuff, but Mastodon doesn’t seem as good as MBIN when it comes to co-operating with Lemmy.

    (edit: how that screenshot shows on MBIN is a bit disappointing though - at least looking at on the web)