gkd

joined 2 years ago
[–] gkd 2 points 2 years ago (2 children)

Can you join the discord and @ me so we work this out?

I’ll be in an out today, have some July 4th things going on but I’ll look into it later in the day.

[–] gkd 3 points 2 years ago

Thanks I’ll work on it today.

[–] gkd 1 points 2 years ago (2 children)

Unless I’m having a brain fart, I think the buttons are optional now. I’m working so can’t check

[–] gkd 1 points 2 years ago
[–] gkd 6 points 2 years ago

Don’t worry I have your back. We’ll take ‘em together.

[–] gkd 2 points 2 years ago

The instance list? There are a few publicly available scripts to do this (actually you can visit https://memmy.app/instances.json to see how I'm retrieving the instance info for onboarding. I'm only retrieving a few of them right now while we wait on Apple to review the initial app).

Could just do the same thing for all instances and only retrieve the name and URL for them.

[–] gkd 3 points 2 years ago

I have some ideas. There's comment somewhere else in this thread I just made. We will experiment with this one of these days.

I'm already running a server for this, so hosting isn't an issue at all 🖖

[–] gkd 2 points 2 years ago (2 children)

Yup, looks like pretty much exactly what I was considering.

As a matter of fact, the idea of just having a preset list of instances looks really good too. What I might do is this:

  1. Maintain a list of instances at https://memmy.app/allInstances.json
  2. You press a link that contains /post/, Memmy communicates with Memmy.app to retrieve that list
  3. Try to retrieve the post from the instance it is on (looks like the script uses the same idea that I figured would be correct, which is to just use the /post endpoint)
  4. Send a search request to your instance with that post title and username as that user
  5. Redirect you to that post

We will see how it works out.

[–] gkd 3 points 2 years ago (2 children)

Unfortunately the thing about this is that it requires you have access to the server. You have to add a site association to your web server which wouldn’t work in this case. I could possibly do something with an extension though that redirects you from that site to memmy.app which would then open the app.

The problem still though is how to actually identify a link. Just checking for /u/ or /c/ is unreliable. /post/ is slightly more reliable but I still feel like it might not be. I’d need to see how many popular services are using something like that.

Extension finds links that contain /post/somet

[–] gkd 3 points 2 years ago (10 children)

This is something I'd love to do, but I need to figure out the best way to do it. I've never done one before, but I'm sure I could figure that part out.

My question is how do I actually know if something is a Lemmy link? Do I just see if the URL matches /c/.... or /u/....? This doesn't seem great because I'm sure other sites are using the same thing.

I could also do a bit deeper of a check, see if it's /u/something or even /u/something@something, but this would still be sketchy at best in my opinion.

If anyone has any ideas, I'll happily hear them out. It's something I want to do as well.

[–] gkd 1 points 2 years ago

Wrong account but that was me...also not my REAL account because I cannot get on .ml...anyway, yea, got this going on.

[–] gkd 3 points 2 years ago (1 children)

Makes me feel better that I'm not the only one who had this oversight 😅

view more: ‹ prev next ›