Haha, I have no one to blame but myself unfortunately! I did make a change to the inner circle of the C making it less skewed based on all the feedback.
Hi, there is a 'Filters' setting on the main Settings page (just below Show NSFW and above Text Size options), it accepts both text and regex (in /this/ format) and will block any post which has a title or body that contains one of the filtered words.
Maybe I should add this as a setting but the current behaviour is it blocks posts inside communities of that instance and comments from users of that instance (depending on your settings) but not posts to communities in other instances from users belonging to the blocked instance.
I don't but it's nothing complex. When you view the 'About Instance' page I call the ListCommunities API for that instance and get the top 50 communities then display it in a list. Here's the dart code that Connect uses:
void _communityBrowse() async {
// dont call this multiple times while waiting for a response
if (isLoading) {
return;
}
setState(() {
isLoading = true; // turn on loading spinner
});
// Connect to the API of whichever instance is being viewed
var lemmy = LemmyApiV3(widget.id);
// 50 top communities from the relevant instance
try {
List communitiesTemp = await retry(
2,
() => lemmy.run(ListCommunities(
type: PostListingType.local,
sort: SortType.topAll,
page: communitiesPage,
limit: 50)));
communities = communities + communitiesTemp;
} on Exception catch (ex) {
UtilError.errorMessage(this, ex);
}
setState(() {
isLoading = false; // turn off loading spinner
});
// increment page for future invocations
communitiesPage = communitiesPage + 1;
}
Thank you!