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

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

help-circle
  • freamon@endlesstalk.orgtoLemmy@lemmy.mlHow to download account data?
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    4 months ago

    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








  • Regarding the ‘Unresolved questions’ part, the ActivityPub activity for Reports is:

    {
      "actor": "http://ds9.lemmy.ml/u/lemmy_alpha",
      "to": ["http://enterprise.lemmy.ml/c/main"],
      "audience": "http://enterprise.lemmy.ml/u/main",
      "object": "http://enterprise.lemmy.ml/post/7",
      "summary": "report this post",
      "type": "Flag",
      "id": "http://ds9.lemmy.ml/activities/flag/98b0933f-5e45-4a95-a15f-e0dc86361ba4"
    }
    

    From this page. I imagine it’s up to lemmy where this actually gets sent (in the sense that if a community has 1 moderator, it goes to 1 inbox, but if it has 2 moderators, it goes to 2 inboxes).








  • Mmmm. It’s the instance that people are on on that’s doing (or not doing) much of the work there. If you comment on a post, the instance will send 1 copy to me (who’s responsible for federating it out to other Lemmy instances) and 1 copy to Mastodon for the post’s author.

    If you reply to a Lemmy comment, it doesn’t send it to Mastodon because it’s not for the author (in much the same way that you don’t get replies to replies in your inbox if you’re the OP of a Lemmy post). For local posts, both Mastodon and Lemmy show the local comment tree, but neither can show every Fediverse interaction because they never hear about them.

    Likewise, if you reply to a Mastodon comment, your instance will send it to the comment author, but not the post author, so won’t appear anywhere under their post.

    As for Mastodon comments on Lemmy … it depends. I follow some accounts, so when I post them to Lemmy, top-level comments come through automatically (again, though, I never hear about replies to replies). Other content is just stuff I’ve seen and grabbed. I often post the existing replies, but not if they’ve turned Authorized Fetch on, and I don’t typically go back and check for more later.









  • 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’