feat: add maximally portable share card functionality#63
feat: add maximally portable share card functionality#63
Conversation
- Add share button to status display page - Create share modal with platform-specific sharing options (BlueSky, Twitter/X, SMS, Email, Mastodon) - Implement copy-to-clipboard for share URL - Add dynamic SVG Open Graph image generation endpoint - Update meta tags to use dynamic share card images - Support Web Share API for native sharing on mobile Co-authored-by: nate nowack <zzstoatzz@users.noreply.github.com>
Code Review for PR #63: Share Card Functionality✅ Strengths
🔍 Issues & Recommendations1. Security Concern - XSS Vulnerability 🔴The SVG generation in src/api/status_read.rs lines 514-527 directly interpolates user-controlled data without proper escaping. The handle and text variables are inserted directly into the SVG format string, which could allow XSS if they contain malicious content. Fix: HTML-escape all user inputs before interpolation. Implement an escape function for special characters. 2. Performance - Missing Caching Headers
|
Closes #62
Summary
Implemented a comprehensive share card system for maximally portable status sharing across platforms.
Features
Testing
🤖 Generated with Claude Code