this post was submitted on 30 Apr 2024
1 points (100.0% liked)

Lemmy Support

4655 readers
3 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

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

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 0 points 6 months ago (2 children)

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?GetComments=liked_only=true" --header 'accept: application/json' to get liked comments as JSON
[–] [email protected] 0 points 6 months ago

Thanks. Those look like they're likes per post or comment rather than per user but it's pretty close to what I'm looking for. I'm gonna test that out when I get back from my conference!

[–] [email protected] 0 points 6 months ago* (last edited 6 months ago)

A good starting point, but since they are GET requests, there is no reason to leave the browser.

You can visit the links directly, such as (I filled in OP's instance):

I've heard from somewhere that chrome doesn't render JSON nicely, so make sure to use firefox!

Other interesting parameters are saved_only and disliked_only.

[–] [email protected] 0 points 6 months ago (2 children)

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.

[–] [email protected] 0 points 5 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.

[–] [email protected] 0 points 6 months ago* (last edited 6 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.