I would like an option for this as well, but the problem is that Mbin doesn't provide an API with both threads and microblogs in one combined feed.
I would imagine that. The app makes two requests at once when opening up the app?
Yes, that is a possibility, but then we'd have this weird layout where about 25 threads are shown, and then 25 microblogs are shown, and it would keep alternating back and forth. If people are willing to have that weird compromise, then I could add that as an option, but I personally would prefer to wait till Mbin provides native support for this.
I mean, a native solution might be the best option. I understand not wanting to work around into this, but like something like this:
- Two requests are made
- Both are aggregated to the same collection/array
- That collection is ordered based on the filters of the user choice
I don't understand why it would show 25 of one kind and then the other, but I mean, I haven't looked at the source code, and nor do I have knowledge with Dart/Flutter.
Anyway, thanks for making this app, I use it every day. :D
Well, it would make both requests, and one would have to be made after the other. Whichever request is made last would be added to the end and displayed after the first. For example, if a request for threads is made, then the 25 threads that get returned from the API would be added to the list, then when the request for microblogs is made, and those 25 microblogs get added to the end (after the threads).
What I'm assuming you're suggesting is to attempt to sort the threads and microblogs intermixed, which wouldn't really work, considering how many different sorting options there are and how complex some of the sort options are. For example, in order to get the "Active" sort option to intermix the two types, I would have to dig into Mbin's and Lemmy's sourcecode in order to figure out how it sorts active posts. Some of the sort options would be easier to figure out though (like newest and commented), but there are still other issues to consider.
I see... I thought that it would be possible to make both request at the same time concurrently, and after both gave back a response (whether that be an error or not) handle it properly. Well, we'll have to wait for #Mbin to implement this.
I just remembered the Mbin GitHub issue about this, so if you (or anybody else) would like to show interest, you could upvote the related feature request.
Interstellar App
An app for Mbin and Lemmy; connecting you to the fediverse.
Links:
Downloads: