more changes to private posts #156
Closed
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.
name: Pull Request
about: private posts
Summary of Changes
This pull request includes several changes to enhance the handling of encrypted posts, update the post schema, and improve the clipboard functionality. The most important changes include adding support for encryption keys with lengths, updating the post schema to include optional fields for encryption and access control, and modifying the clipboard functionality to handle encrypted text.
Improvements to clipboard functionality:
src/components/post-card.tsx
: Added logic to handle copying encrypted text to the clipboard if the regular text is not available.Enhancements to encryption handling:
src/components/post-card.tsx
: Updated thecreateEncryptedPost
function to include the encryption key length and changed the encryption type field toalgorithm
.src/components/post-card.tsx
: Modified thedecryptPrivatePost
function to handle the decryption process with the new encryption key structure, including the key length and algorithm.Updates to post schema:
src/lib/bluesky/types/bsky-post.ts
: Added optional fields forakariPublicKey
,encryptedText
, andencryption
details, including the encryption key and its length. Also updated thetext
field to allow a literal value indicating a private post.src/lib/bluesky/types/bsky-post.ts
: Enhanced the access control list (ACL) structure to include optional group permissions and detailed interaction permissions.License Agreement