mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Display warning on community whose host instance no longer exists

Open Sjmarf opened this issue 1 year ago • 1 comments

I just read this comment on Lemmy:

This is an issue with the way communities currently federated. If the host instance goes down, users can continue posting to their local versions of the community, blissfully unaware that their posts are no longer being federated.

One way to do this would be to check if the host instance is in the MlemStats.main.hosts set. If it isn't, we would attempt to contact the domain to double-check. If the domain is unreachable, display a warning that the server may be temporarily or permanently down. We should also replicate this warning in the "New Post" sheet, as the user can access the post composer without visiting CommuntiyView.

Sjmarf avatar Aug 17 '24 22:08 Sjmarf

This also applies to de-federated instances, actually. You can still post to communities on an instance that your instance de-federated from, but the post won't be sent properly. This is more difficult to do - possibly we could store a set of de-federated domains in the active UserSession to check this.

Sjmarf avatar Sep 09 '24 20:09 Sjmarf