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.
Basic info
This pull-request offers repost feature (#1).
Reposts are shown together with regular posts in consistent timeline.
Details
Proposed terminology:
Repost
– means only event of repost, without body of original post (there is only link to origin).Origin
– original post, which can be retrieved by link from repost.Proposed Changes
DB Schema changes: Add
repost
table with columnspost_id
,date_added
andrepost_uri
(link to origin).When timeline is loading, body and other data of reposts are populated from the origin, with addition of some metadata from repost itself.
From the user's point of view, "repost" button behaves almost like a "like" button, but it also adds post to timeline of user.
TODO
Demo
screen-2022-11-20_12.40.44.mp4
This is a draft which is not properly tested. Don't use this modified client with your main profile! You should create a new profile for tests (or make backups) to avoid possible data loss.
ZeroNet demo page (expect seeding issues): http://localhost:43110/1AXjiwipCneqUXThCYHKnrCijyMsFBCN2o/