Show Originals: Improve option to hide only reblogs you follow #1750
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.
Description
One of those PRs that takes much longer to understand than to write :D There may be a way to refactor this or comment this to make it clearer.
The "always show reblogs of blogs I don't follow" option of Show Originals—which is probably better stated, at least for the sake of explaining this PR, as "only hide reblogs of blogs I follow"—is intended to ;00
...I spilled something on my laptop. will finish this later.—is intended, as per the original requesting issue #1386, to make the feature hide "duplicated" content, i.e. reblogs which will appear in essentially the same form on the user's dashboard chronologically before the post in question. A reblog of a blog the user follows fulfills this condition.
This condition is also fulfilled if the direct reblogged-from post isn't from a followed user, but the last trail item is. This PR expands the definition of "reblogged from following" in this feature to include the last trail item being "from following."
Resolves #1726.
Testing steps