aka freamon@lemmy.world, freamon@feddit.nl, and any username from lemmon.website

This account is currently parked, and I’m using https://piefed.social/u/andrew_s

  • 2 Posts
  • 39 Comments
Joined 1 year ago
cake
Cake day: July 17th, 2023

help-circle
  • No settings page (as far as I’m aware), but you can use the API to get everything (posts, comments, etc):

    step 1: get login token -

    curl --request POST \
         --url https://lemmy.ml/api/v3/user/login \
         --header 'accept: application/json' \
         --header 'content-type: application/json' \
         --data '
    {
      "username_or_email": "2br02b",
      "password": "YOUR-PASSWORD"
    }
    '
    

    step 2: use login token (big long string starting with ‘ey’) to get data -

    curl --request GET \
         --url 'https://lemmy.ml/api/v3/user?username=2br02b&page=1' \
         --header 'accept: application/json' \
         --header 'authorization: Bearer YOUR-JWT'
    

    Increment page number until you have everything. source: https://lemmy.readme.io/reference/get_user









  • freamon@endlesstalk.orgtoFediverse@lemmy.worldThe perfect Lemmy app?
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 months ago

    I think it’s because spoiler tags in lemmy have been custom-made for some reason, whereas all the other stuff is standard markdown. Voyager is a web app, so it can maybe only render whatever the engine it relies on can render.

    Edit: Turns out I’m 2 for 2 on making incorrect statements in this comment.


  • I’ve compiled lemmy a few times - it’s fairly straightforward. I’ve tried to compile kbin before, but gave up bored and pissed off with the instructions - they seem endless, and like a big list of ‘edit this file’ (with no indication for whether you’re adding or updating info), ‘now edit this file’, ‘now go back and edit the first file again’. I know mbin isn’t kbin, but the instructions are the same.

    I was trying because someone from there subscribed to a community I made just using ActivityPub, but nothing I’ve sent there has actually appeared. If you send the wrong stuff to lemmy, it errors. It’s not always the most useful message, but it’s at least a ‘400 Bad Request’, not the ‘200 OK {}’ you get back from kbin. What does it want? Does it not like ‘Create/Page’? Is there a problem with the content? I don’t know, because I can’t [be bothered to] compile it, and the tech specs for these 'bins lead to a 404.











  • Just to say, I massively prefer the name ‘microblogmemes’ over ‘whitepeopletwitter’. That was always a weird one - posts didn’t always involve white people, didn’t always come from Twitter (which - technically - doesn’t even exist anymore) and seemed based on a petty misunderstanding of what Black People Twitter was.

    FWIW, I agree with you about the Denny’s post. I’m also the moderator of a community that Stamets has quit, so I know that losing him is a blow, because he posts a lot of content. But I also know that he’s a complicated human.


  • The short answer is that you have to ask blahaj.zone to resolve it. lemmy.ml has it as post id 11470168, but it’ll be different for other instances - whatever the next number was in their database when the post was announced.

    You get different answers depending on whether you’re logged in or not though.
    From endlesstalk.org, I can search for that post in the web-ui: Communities -> paste the post url into Search -> Change the Type from ‘communities’ to ‘posts’
    Alternatively, using the API, I can resolve it with
    curl --header 'accept: application/json' --header 'authorization: Bearer MY_LOGIN_TOKEN' https://endlesstalk.org/api/v3/resolve_object?q=https://lemmy.ml/post/11470168

    I’m not logged into blahaj.zone though, so it won’t resolve it. The web-ui only gives me this post as one that mentions the thing I’m searching for, and the API returns ‘not found’