Files
opengenesislinkserver/doc/OpenGenesisLINK/OGL_PROFILE_FEED_V1.md
T
OpenGenesis (MPL 2.0) c1643d7cdc feat(g1): Stadt NexVerse Feed v2 – modernes Webprofil, OAuth und opt-in Auto-Posts (#437)
* feat(feed): add followed-resident activity timeline and viewer reaction state

* feat(feed): authenticated avatar identity, following timeline and reaction metadata

* feat(feed): interactive same-origin OAuth PKCE web profile composer and timeline UI

* feat(feed): upgrade Firestorm web profile to interactive same-origin PKCE UI

* config(feed): inject registered public OAuth client and exact /feed callback

* config(feed): expose optional public OAuth client ID for direct viewer posting

* config(feed): expose optional public OAuth client ID for direct viewer posting

* config(feed): expose optional public OAuth client ID for direct viewer posting

* feat(feed): preserve own like state in following timeline

* feat(feed): return scoped reaction state in personalized timeline

* docs(api): document OAuth avatar identity and followed feed timeline endpoints

* docs(feed): production-oriented public OAuth registration and interactive viewer rollout

* ci(feed): verify OAuth PKCE, private profiles, timeline and real browser JS syntax

* test(feed): exercise real MariaDB followed timeline and viewer reaction state

* test(feed): import LINQ for followed timeline integration checks

* ci(feed): gate interactive OAuth feed on privacy contracts and browser syntax

* docs(feed): distinguish legacy read-only v1 from opt-in interactive webprofile v2

* feat(feed): idempotent first-party OAuth client bootstrap respecting admin disable

* feat(feed): enable by default and bootstrap OAuth public client on ROBUST startup

* config(feed): default enable web feed and automatic public OAuth provisioning

* config(feed): default enable web feed and automatic public OAuth provisioning

* config(feed): default enable web feed and automatic public OAuth provisioning

* style(feed): redesign responsive Stadt NexVerse feed, composer, profile and stream cards

* style(feed): Stadt NexVerse branded profile hero and cards, powered by OpenGenesisLINK footer

* style(feed): modern interactive avatar cards, action buttons, responsive timelines

* test(feed): align release contracts with safe auto-enabled feed default

* test(feed): align release contracts with safe auto-enabled feed default

* test(feed): align release contracts with safe auto-enabled feed default

* test(feed): verify Stadt NexVerse branding, mobile fallback and CSP

* ci(feed): gate modern NexVerse brand design and browser security

* test(feed): check stream title in client layout rather than static server HTML

* docs(feed): document default-enabled first-party web profile and safety gates

* docs(feed): document default-enabled first-party web profile and safety gates

* docs(feed): use automatic persistent OAuth client by default, manual override optional

* test(feed): cover built-in OAuth public client bootstrap and safe operator opt-out

* feat(feed): opt-in automatic event/classified activity settings and idempotent SQL receipts

* fix(feed): purge activity consent and dedup records in atomic self/admin account deletion

* feat(feed): validated and consent-gated auto posts for approved events/classifieds

* feat(feed): publish verified discovery approval events for consent-gated auto posts

* feat(feed): bind vetted discovery events to opt-in activity publisher

* feat(feed): authenticated per-avatar opt-in controls for automatic activities

* feat(feed): modern per-avatar opt-in switches for event and classified auto posts

* db(feed): migration for opt-in auto-post consent and dedup receipts

* test(feed): live MariaDB auto activity consent/dedup and account deletion

* docs(api): add authenticated personal auto-activity preference endpoints

* ci(feed): contract gate for consented auto posts and durable cleanup

* test(feed): match default-on feed config and atomic activity-consent deletion

* ci(feed): include privacy-gated automatic event and classified publication checks

* docs(feed): opt-in auto event/classified posts, NexVerse branding and safe activation

* fix(feed): accept MySQL TINYINT(1) boolean mapping in auto activity consent

* docs(release): reflect default-on interactive NexVerse feed and opt-in auto activity schema

* fix(feed): import OpenSim.Framework for avatar profile properties

* fix(feed): avoid C# out-variable scope collisions in activity preferences route

* docs(api): sync ChatGPT route index with profile feed OAuth and activity preferences

* test(feed): account for retention sweep in personalized timeline route

* test(feed): match multiline OAuth client lookup without false CI failure
2026-11-11 22:47:37 +01:00

5.5 KiB

OpenGenesisLINK Profile Feed v1 — Stadt NexVerse

Status: standardmaessig aktiviert, aber bei inkompatibler MariaDB fail-closed; kein automatisches Produktiv-Deployment oder Neustart. Account-Loeschung und Retention sind im aktuellen Generation-1-Stand implementiert. Staging-/Viewer-Abnahme vor produktiver Freigabe erforderlich: OGL_PROFILE_FEED_ROLLOUT.md.

Grundlage: Second Life zeigt den Feed-Reiter als eingebettete Webansicht. OpenSim/Firestorm können über GridInfo web_profile_url eine eigene Feed-Webseite beziehen.

Funktionsumfang

  • Eigene Textbeiträge (max. 1.500 Zeichen), chronologisch neueste zuerst.
  • Kommentare (max. 800 Zeichen) mit Bearbeiter-UUID, Likes, Folgen/Entfolgen.
  • Beitragslöschung durch Eigentümer, Kommentarlöschung durch Verfasser oder Profilinhaber.
  • Öffentliche HTML-Ansicht im Firestorm-Feed-Reiter: https://world.stadt-nexverse.de/feed?name=Vorname.Nachname
  • Profile-ID-basierte JSON-Schnittstelle /api/v1/feed/{principalId}. GET liefert Beiträge, Anzahl Kommentare/Likes und Follower; GET /api/v1/feed/{principalId}/{postId}/comments liefert Kommentare.
  • POST /api/v1/feed/{principalId} erstellt nur für den eigenen Avatar Beiträge, Bearer-Scope profile:write.
  • DELETE /api/v1/feed/{principalId}/{postId} entfernt eigenen Beitrag.
  • POST /api/v1/feed/{principalId}/{postId}/comments, DELETE /api/v1/feed/{principalId}/{postId}/comments/{commentId}.
  • PUT/DELETE /api/v1/feed/{principalId}/{postId}/likes und PUT/DELETE /api/v1/feed/{principalId}/following. Diese benötigen jeweils relationships:write, gültigen lokalen Avatar und einen veröffentlichten oder eigenen Feed.

Alle Schreibaufrufe nutzen JSON {"text":"Hallo NexVerse!"} und Authorization: Bearer <OAuth-Access-Token>. Keine öffentlichen Schreibzugriffe, URL-Tokens, Viewer-Session-Spoofing oder Passwörter im Feed. Rate-Limits: höchstens 3 Beiträge/10 Minuten sowie 30/24 Stunden, maximal 10 Kommentare/Minute je lokaler Avatar (zuzüglich API-Rate-Limit).

Datenschutz

Die öffentliche Leseberechtigung hängt immer vom maßgeblichen userprofile.profileAllowPublish ab. Ist das Profil privat, gibt GET nur mit eigenem profile:read-Token oder berechtigtem Administrator-Token Daten frei; die anonyme Viewer-Webseite bleibt gesperrt. Unbekannte oder fremde Hypergrid-Identitäten erhalten keinen Feed. Posts/Kommentare werden HTML-escaped gerendert (keine aktiven HTML-Inhalte). Aus dem vorhandenen Inventar werden keine Medien oder privaten Texturen übernommen. Externe Bild-URLs sind in Phase 1 nicht unterstützt.

Der v1-Modus bleibt ohne OAuth-Client lesend. Der unveraenderte Viewer uebergibt dem Feed-Webbrowser kein sicheres OAuth-Token. Ab v2 kann sich der Avatar im Webprofil aber separat ueber den bestehenden OAuth-Browserflow mit PKCE anmelden und Statusposts, Kommentare, Likes und Follows direkt bedienen, ohne den Viewer zu patchen. Siehe interaktiver Feed v2. Keine automatische Uebernahme der Second-Life-Feed-Daten; Stadt NexVerse betreibt einen eigenstaendigen Datenspeicher.

Konfiguration

Die produktive bin/Robust.HG.ini wird von diesem PR nicht verändert. Vor Freigabe auf Staging vorhandene Konfiguration sichern, dann:

[NexVerseWorldApi]
EnableProfileFeed = true

[GridInfoService]
web_profile_url = https://world.stadt-nexverse.de/feed?name=[AGENT_NAME]

Die web_profile_url-Zeile gehört in die bereits vorhandene [GridInfoService]-Sektion. Keine doppelte Sektion anlegen. Die externe HTTPS-URL muss die neue /feed-Route auf ROBUST proxien und im Browser erreichbar sein. Firestorm kann gecachte Gridinformationen haben, daher nach Änderung Gridinfo aktualisieren bzw. Viewer neu anmelden.

Nur mit [UserProfilesService] Enabled = true und dem vorhandenen MariaDB-Profilprovider. Beim ersten Aktivieren entstehen (InnoDB): ogl_profile_feed_posts, ogl_profile_feed_comments, ogl_profile_feed_likes, ogl_profile_feed_follows. Die Tabellen werden nicht vom normalen Profil-PATCH verändert.

Vor dem Upgrade: vollständiges DB-Backup und Staging-Test; Ausfall des optionalen Feeds darf ROBUST nicht am Start hindern. Abschalten mit EnableProfileFeed=false löscht keine Beiträge. Kein automatischer produktiver Rollout.

Abnahme vor Aktivierung

  1. Tests für OpenAPI, bestehende Avatarprofile, OAuth, MariaDB und Viewer-Login.
  2. Profil öffentlich: Anzeige in Firestorm und als JSON; privat: anonym HTTP 404.
  3. OAuth-Bearer owner/non-owner, Fremd-Grid-Agent, Scope und ungültige UUIDs.
  4. Beitrags-/Kommentarlimits, Cross-Profile-ID-Missbrauch, Likes, Folgen, Kommentarentfernung und persistente DB-Speicherung.
  5. Unicode/HTML-Injection, lange UTF-8-Anfragen, Browser-CSP und kein Abfluss von Sessiontokens.
  6. Reverse-Proxy-URL, Firestorm 7.2.4 OpenSim, GridInfo-Cache und unverändertes Profil-/Login-Protokoll.
  7. Datenschutz: Transaktionale Loeschung der Feeddaten bei Konto- Selbstloeschung und Admin-Delete sowie parallele Schreibzugriffe mit der MariaDB-Live-Matrix pruefen.

Noch nicht implementiert

  • Upload und Anzeige von Fotos/Snapshots im Feed.
  • Viewer-Web-Login mit OAuth-PKCE für direktes Schreiben im Feed-Reiter.
  • Benachrichtigungen, Timeline gefolgter Personen, Freunde-beschränkte Sichtbarkeit, Moderationsqueue, Meldesystem und Hypergrid-Federation.
  • Konto-Loeschflow ist mit gemeinsamer MariaDB und InnoDB-Transaktion implementiert; offene Staging-Abnahme bleibt ein Freigabe-Gate. Siehe Rollout-Checkliste.