Is there a way for me to get a list of all the posts I’ve liked/disliked?

  • mozz@mbin.grits.dev
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    19 days ago

    API docs are at https://lemmy.readme.io/reference/get_post-list - I haven’t tested this, but to me it looks like you can get raw results for what you’ve liked by doing this (for $server set to whatever server address):

    1. Open web developer tools and go to the “Network” tab
    2. Load a page of Lemmy while logged in
    3. Right-click on one of the network requests, select Copy Value -> Copy as curl
    4. Paste the resulting value to command line in a place that has curl; that’ll give you a request that has the right auth tokens and etc
    5. Backspace over the actual URL so you can replace it with the API calls you need
    6. Use --request GET --url "https://$server/api/v3/post/list?liked_only=true" --header 'accept: application/json' to get liked posts as JSON
    7. Use --request GET --url "https://$server/api/v3/comment/list?liked_only=true" --header 'accept: application/json' to get liked comments as JSON

    Edit: Fixed comment link

  • T Jedi@bolha.forum
    link
    fedilink
    arrow-up
    3
    ·
    20 days ago

    Not in the default web app. Lemmy provides an API endpoint, so third party clients can list liked posts.

    I use Boost and it shows me on my profile screen.

    • aprentic@lemm.eeOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      20 days ago

      That’s exactly what I’m looking for!

      I’m gonna go test out Boost. Do you happen to know what API endpoint it hits?

      update: It looks like Boost is only available on Android and I don’t have one.

  • willya@lemmyf.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    20 days ago

    No, not that I know of, but Voyager has this built in so there’s gotta be a way to call it through API.

    For now just use Voyager if you need to look.