federation issue searching for communities hosted on my instance?

Die4Ever@programming.dev to Lemmy@lemmy.ml – 7 points –

EDIT: seems like BrikoX figured it out, cross-instance searches only work when logged in, I filed a feature request to make this more clear to the user https://github.com/LemmyNet/lemmy-ui/issues/1862

I spun up my own little instance, and I'm able to search for the community from some other instances but not all of them and I don't know why

works: https://programming.dev/search?q=https%3A%2F%2Flemmy.mods4ever.com%2Fc%2Fmeta&type=Communities&listingType=All&page=1&sort=TopAll

fails: https://lemmy.ml/search?q=https%3A%2F%2Flemmy.mods4ever.com%2Fc%2Fmeta&type=Communities&listingType=All&page=1&sort=TopAll

the curl command works fine

curl -H "Accept: application/activity+json" https://lemmy.mods4ever.com/c/meta

maybe Lemmy should dump some debugging info about these searches into the javascript console so we can debug these more easily?

7

Fails on both for me. I think you need to be logged in for it to pull it. And as you are from programming.dev it works for you there. And since I'm from neither it fails on both.

It works if I search for it on my instance where I'm logged in.

oh wow you need to be logged in for it to work? that sorta makes sense to not flood the server but very unintuitive, maybe it could instead make a link to that instance natively instead of remotely?

yea it doesn't work if I do it incognito

There are a lot of add-ons and userscripts that reformat the links automatically, not sure if or when it's planned to be part of Lemmy.