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
    7 months 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
    ·
    7 months 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
      7 months 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.

    • Lost_My_Mind@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      6 months ago

      By default web app, do you mean the website? Going to a PC, opening firefox, and going to Lemmy.world? Or is there an app within a webpage that I don’t know about? Obviously because I’m here I’m new to Lemmy…and just so many things seem to opperate in a way that seems so backwards.

      I can see that this platform is very tech savy user centric, and I’d call myself tech capable, but not a tech wizard. I can’t figure out linux for the life of me. But I’m still the millenial everybodys boomer parents call to “fix” their pc. And by that I obviousy mean a reboot, and sometimes to exit a program and restart it.

      So, I’m in a place where I can sometimes understand what you guys are talking about, but other times (like above, whatever mozz is saying) where I’m just nodding like “Yes. Those certainly are words…some of them even make sense! Not a lot of them, but some.”

      Then on the other side of the isle, the mainstream users would never approach this site. Because of how oddly it behaves.

      For example. If I’m on Lemmy.World, and I somehow click some links, and end up on Lemmy.ml, I’m no longer logged in. At first I thought it was some glitch, or error, but no. That’s how that’s supposed to work. Then you’re supposed to use [email protected] in a search bar, which only brings up search results for things matching that .ml community.

      I should be able to go to Lemmy.World. And if I somehow find myself on Lemmy.ml, then I should still be logged in. I should be able to post. And if Lemmy.ml ever defederated from Lemmy.world, my posts on the Lemmy.ml server would cease to exist, but if you look at my profile directly, you should be able to still see them.

      If I signed up at Lemmy.world, and I want to move to Lemmy.ml, I should be able to go into my settings, and say “transfer account”, and it would transfer all of my account, and it’s history, over to Lemmy.ml

      UI’s shouldn’t be a different instance. If my account is at Lemmy.world, and I want to use Old.Lemmy.World…that shouldn’t mean that now I need an account at Old.Lemmy.World. It should just be a layout option from ANY instance.

      Yes, I went on a bit of a rant, and yes, you’re not the one who will know how to fix all these things, or even in charge of any of it, but man this stuff has been frustrating me for 3 weeks since I got here.

      • T Jedi@bolha.forum
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 months ago

        No worries. You’re not the first one who went in this rant, and I ensure you won’t be the last.

        I agree with you. Sometimes we all feel like beta users of this fairly new platform. And much can be improved before “mainstream” adoption. But let me see if I can help you wrap your head arround some of your concerns.

        About you not be logged on Lemmy.ml, I think it helps if you think of “Lemmy” the same as “Email with votes”. You don’t expect to be logged on you Gmail account when you access Hotmail.com, but you still can read messages from @hotmail.com accounts, even as those two sites are managed by different companies / entities.

        Transfer account is something lacking, yes. And I think its a feature on the backlog for lemmy devs, cause other similar services has it, like Mastodon.

        UI should not be a different instance, and I don’t think it is. I have an account on sh.itjust.works and I can use the same login and password on oldsh.itjust.works. So if you have problem with old.lemmy.world, you have all the rights to complain with whatever entity is running your instance.

        Well… That’s it. I hope that helps. If you have any further questions, I encourage you to send a message to any of lemmy.world’s mod or adm. Different from reddit, the adms of lemmy tend to listen to its users.

  • willya@lemmyf.uk
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    7 months 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.