Repository navigation
feat: Social-Basics (Likes, Kommentare, klickbare Links, Link-Vorschau, Teilen) + Profil-Einstellungen - #8
Merged
Merged
Conversation
…ccount tools - New /einstellungen page: profile (avatar, bio, location, pronouns, links), privacy (members / public / hidden, show posts and trust tree), notification preferences and account (email change, delete account). - Migration 0003: new profile columns, profile_settings table, RPCs update_profile, set_avatar, update_notification_settings, get_public_profile, delete_my_account, anon read policy for public avatars. - Public profile at /u/<name> for visibility = public, served via RPC only. - Auth callback honors an allow-listed next=/einstellungen redirect. - Tests: 11 new unit tests, SQL contract extended to 111 checks. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ring - Clickable links (http/https, www.) and @mentions in posts and comments. - Link previews via /api/link-preview: server fetches Open Graph/oEmbed data with SSRF guards (no private networks, DNS-pinned lookup, 5 s, 600 KB, max 3 redirects), members only in live mode. - Spotify and YouTube links show a cover card; the real player loads on click (two-click privacy). - Likes: migration 0004 adds post_likes + posts.likes_count, RPC toggle_post_like (no self-likes), "Gefällt X, Y und …" with liker list. Likes are independent from the community check. - Comments: inline comment form, comment bubbles with likes, image and voice replies via the composer, "Alle N Kommentare ansehen". - Sharing: permalink page /p/<id>, native share sheet on touch devices, copy link elsewhere. - Delete posts/comments: RPC delete_post for author, room host/moderator and admins, with confirmation dialog. - Profile: re-record voice intro (RPC set_voice_intro), post and heart counts on the profile page. - Feed loads 150 top-level posts plus their comments and likes. - Tests: 14 new unit tests (46 total), SQL contract 136 checks. - Docs: Flutter contract, deployment order 0003 -> 0004, validation. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Worum es geht
Die ersten Nutzer haben gemeldet, dass Grundfunktionen fehlen. Dieser PR bringt die Social-Media-Basics und enthält außerdem die bisher nicht gemergten Profil-Einstellungen (Commit
b095824).Social-Basics (Migration
0004_social_basics.sql)www.-Adressen in Beiträgen und Kommentaren werden zu Links (neuer Tab,nofollow ugc).@nameverlinkt auf das Profil.GET /api/link-preview. Schutz gegen SSRF: keine privaten Netze, DNS-gepinnte Verbindung, 5 s Timeout, 600 KB, max. 3 Weiterleitungen, im Live-Betrieb nur mit Sitzung.post_likes+posts.likes_count, RPCtoggle_post_like. Eigene Beiträge können nicht geliked werden. Anzeige „Gefällt Mira, Jonas und 3 weiteren“ mit Liste der Personen. Unabhängig von der Community-Prüfung (ändertslop_statusnicht)./p/<id>(nur für Mitglieder mit Lesezugriff), natives Teilen-Menü auf Touch-Geräten, sonst Link kopieren.delete_postfür Autor, Gastgeber/Moderation des Raums und Admins, mit Bestätigung.set_voice_intro), Beiträge und erhaltene Herzen auf dem Profil.Profil-Einstellungen (Migration
0003_profile_settings.sql, ausb095824)/einstellungenmit Profil (Avatar, Bio, Ort, Pronomen, Links), Privatsphäre, Mitteilungen und Konto (E-Mail ändern, Konto löschen), öffentliches Profil unter/u/<name>.Prüfung
npm run lint,npm run typecheck,npm test(46/46, 14 neue) undnpm run buildgrün.python3 supabase/tests/contract.pyauf isoliertem PostgreSQL: 136/136 (25 neue Prüfungen zu Likes, Löschen, Raumgrenzen, parallelen Taps, Sprachvorstellung).localhost,127.0.0.1,169.254.169.254und DNS-Namen auf private Adressen werden abgewiesen.Ausrollen (nicht Teil dieses PRs)
Am Live-Projekt zuerst
0003_profile_settings.sql, dann0004_social_basics.sqlanwenden, danach die Web-Version bauen. Ohne 0004 lädt die neue Version nicht. Der VPS braucht ausgehendes HTTPS für die Link-Vorschau. Details:docs/DEPLOYMENT.md.Nicht nachgewiesen
Migrationen und
/api/link-previewam gehosteten Projekt mit echter Sitzung, Realtime fürpost_likes, natives Teilen auf echten Geräten. E-Mail-Benachrichtigungen für Kommentare/Likes sind noch nicht umgesetzt (die Einstellung wird nur gespeichert).🤖 Generated with Claude Code