Who needs Google Scholar when you have https://mastodon.academy ?
Mastodon.Academy

Stand on the shoulders of pachyderms

@ricci So this thing knows who I am but not where my posts are how do I (help) fix this

@saagar

sounds like a skill issue to me, get good n00b

okay, okay.

I don't know how things are supposed to work when you are hosting a masto instance (is yours masto? or something else?) on the same domain name as another website.

The search finds you because it's using the mastodon dot social search API, but then when it tries to hit /api/v1/ on saagarja dot com, it's getting 404s; code is here:

https://github.com/ricci/top-mastodon-posts/blob/a1d5661d7ee22fdfb6d6d064f8ccca8d7b253699/src/hooks/use-mastodon-statuses.ts#L44

top-mastodon-posts/src/hooks/use-mastodon-statuses.ts at a1d5661d7ee22fdfb6d6d064f8ccca8d7b253699 · ricci/top-mastodon-posts

See a Mastodon account’s most-favo(u)rited posts, Google Scholar style! - ricci/top-mastodon-posts

GitHub
@ricci Ah mine is actually a Pleroma instance I assume it has a different search endpoint
@ricci @shadowfacts is my go-to ActivityPub expert he probably knows what you’re supposed to do here

@saagar @ricci the search endpoint isn’t the problem, you need for resolve the handle using webfinger to find where the instance actually is

if you want to work with software that doesn’t implement the mastodon api (pleroma does, misskey/etc. don’t), you need to use the activitypub outbox endpoint to fetch the posts

@shadowfacts @saagar ah okay, doing the webfinger thing was already on my list

@shadowfacts saagarjha.com doesn't do webfinger in the way that the Mastodon documents suggest: https://docs.joinmastodon.org/admin/config/#local_domain

... they suggest doing a 301 redirect on the webfinger URL to the domain where the instance actually lives. I've just implemented support for this in mastodon.academy, but saagarjha.com returns its webfinger response directly from the saagarjha.com domain without a redirect. While it does return some useful URLs at federated.saagarjha.com, none of them are specifically to the Mastodon API. I *could* guess the correct domain from this, but I would have it do it for *everyone* and I'm worried that might break other instances.

Any suggestions for what the right thing to do in this case is?

@saagar

Configuring your environment - Mastodon documentation

Setting environment variables for your Mastodon installation.

@ricci @saagar you can use the type: application/activity+json link to get the url where the activitypub actor is actually resolvable. you can make the assumption that that domain is where the mastodon api exists (which ought to be the case for everything implementing the mastodon api). but that’s the assumption i mentioned before, and the reason you may want to consider using activitypub directly instead of the mastodon api
@ricci @shadowfacts saagarjha.com is hosted on GitHub Pages and unable to actually produce a 301 redirect
Saagar Jha

Saagar Jha's website.

@ricci @shadowfacts My general understanding is that WebFinger should immediately point you at federated.saagarjha.com and then you can actually talk real ActivityPub from there
Saagar Jha (@[email protected])

@saagar I think Pleroma has a compatible API, I did use it with a Pleroma instance, but I don't know how that works when you're hosting another site on the same domain - don't know if it changes the URL of the endpoint, and if so how I'm supposed to find it