Implement edit and sticky posts features for Posted boards#282
Open
samuel-asleep wants to merge 3 commits intoRetroShare:masterfrom
Open
Implement edit and sticky posts features for Posted boards#282samuel-asleep wants to merge 3 commits intoRetroShare:masterfrom
samuel-asleep wants to merge 3 commits intoRetroShare:masterfrom
Conversation
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 pull request introduces support for "pinned posts" in boards and adds the ability to edit posts (with proper permission checks) in the RetroShare Posted service. The main changes include updates to data structures and serialization logic to handle pinned posts, and enhancements to the post creation API to support editing with validation of author/admin rights.
Pinned Posts Support:
mPinnedPostsfield of typeRsTlvGxsMsgIdSettoRsPostedGroupandRsGxsPostedGroupItem, along with serialization/deserialization logic and necessary header includes. [1] [2] [3]rsitems/rsposteditems.ccto handle the newmPinnedPostsfield, ensuring it is properly cleared, copied, and serialized. [1] [2] [3]Post Editing Functionality:
createPostV2API to support editing existing posts by adding an optionalorigPostIdparameter, updating all interface declarations and implementations accordingly. [1] [2] [3] [4]p3Posted::createPostV2to ensure only the original author or a board admin can edit a post, with appropriate error handling and logging.Miscellaneous:
<cstring>forlibrnpto resolve a dependency.