Mastodon: Add support for filtering by author #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a quick hacky implementation I put together for supporting filtering by authors in Mastodon's connector. I know there's no chance for this to get merged in its current form but I am opening this PR as a place to discuss how a more proper implementation for this could look like in the future
Why?
Tapestry's support for timelines instantly inspired me to figure out if I can make a timeline with only specific people from Mastodon, for example if you want to create a timeline of people who do art, or people who talk about a specific subject.
The implementation
Current implementation is pretty terrible! You have to specify each person you're interested in manually in a long string. Support for multi-selects in the
ui-configis not present right now and populating the configuration programmatically is also missing. If there was native support for lists of strings that would already be a major improvement.Good news
It works! This achieves what I want and is fairly minor edit that I can personally easily rebase when changes occur in upstream's Mastodon connector. I intend to use it and keep maintaining it for my personal use.
I am curious if others are interested in something like this too and if Iconfactory thinks this is worth pursuing. Feel free to close this PR as won't-do if you're not interested in pursuing something like this upstream.
Either ways, the app is excellent and I am loving using it, thank you this gem ❤️