Ability to view entire post as a different account #1409
Merged
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.
Pull Request Description
This PR adds the ability to view a post as a different account. This allows you to perform all post-related actions, like voting/saving/etc. As soon as you navigate back, your original account will be restored. If the post is not found on the instance you switch to, a warning will be shown and the account will be reverted.
Note to self: newly created comments aren't getting added automatically. I think this should be allowed, if the create comment page's user matches the post page's user, so it's just something to look into, but not a big deal.
Issue Being Fixed
Issue Number: #341
Screenshots / Recordings
Apologies for the delay in the recording where I'm waiting for federation. 😊
qemu-system-x86_64_nS8AfircR6.mp4