4
Linked post leads to page not found
(lemm.ee)
Community to discuss Summit, a Lemmy reader for Android.
App (Play Store): https://play.google.com/store/apps/details?id=com.idunnololz.summit
APK: https://github.com/idunnololz/summit-for-lemmy/releases
Patreon: https://patreon.com/SummitforLemmy
Ko-Fi: https://ko-fi.com/summitforlemmy
Website: https://summit.idunnololz.com/
Ah I found the issue. The link you posted is
https://next.lemm.ee/post/27522337
however the instance is notnext.lemm.ee
. The instance islemm.ee
. This is a bit challenging to handle since nothing prevents instances from being hosted on a subdomain so Summit has no idea ifnext.lemm.ee
is the instance orlemm.ee
. I'll look into how I could resolve this issue going forward.Hey! Do I understand correctly that your app is trying to fetch any
/post/<id>
directly from its source instance API? If so, I have a few ideas:<host>/post/<id>
), you could first try to make a request to<host>/version
, and only treat the post as a Lemmy post if you get a JSON response from that endpoint where.software.name === 'lemmy'
. Otherwise, open that URL in the browser.<host>/version
is not a Lemmy response, but<host>
includes a subdomain, you could repeat the same logic from step 1 for the parent domain as well. If you detect a Lemmy API at the parent domain, then just use that to fetch the post.Thank you for the suggestion! Not to worry I've already implemented a fix. It will go out in the next release.