Forum: asking about one's own chart, forecast or comparison

- "Kérdezek róla a fórumon" on the chart, yearly forecast and comparison
  pages: after a window that says what goes out, a share link made for the
  forum (never birth data, names or a title) and a new thread in "Égbolt és
  képletek" with it attached.
- The question shows a card (Sun, Moon, Ascendant with sign, degree and
  house, the summary's title, a link to the shared page) to logged-in
  members only; visitors and search engines see only that there is one.
  The author can take it off, and deleting the question ends the link.
- The shared page (/s/...) now shows comparisons (one wheel, the aspects,
  no names) and yearly forecasts (keys, timeline, transits, the detailed
  text; without the birthday's place); the backend shares forecasts.
- The privacy notice (HU, EN) covers attached charts and muted members.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
feco
2026-11-26 14:52:00 +00:00
co-authored by Claude Opus 5.5
parent 9ca3f478be
commit 863002c1e7
24 changed files with 871 additions and 32 deletions
+14
View File
@@ -117,6 +117,20 @@ export interface ForumPost {
reply_to?: { id: number; nickname: string | null } | null;
/** The viewer muted the author: shown folded up. */
muted?: boolean;
/** A chart, forecast or synastry shared with the question. */
share?: ShareCardData | null;
}
/** A shared chart in a post: in full for members, `locked` for visitors, `revoked` when taken down. */
export interface ShareCardData {
slug?: string;
kind: "chart" | "synastry" | "forecast";
locked?: boolean;
revoked?: boolean;
title?: string;
summary?: string | null;
points?: { id: string; sign: string; degree: number | null; house: number | null }[];
time_known?: boolean;
}
export interface ThreadPage {
+9 -4
View File
@@ -6,7 +6,7 @@ import { headers } from "next/headers";
import { cache } from "react";
import { BACKEND_URL } from "./server";
import type { ChartResult } from "./types";
import type { AnalysisContent, ChartResult, Forecast, SolarReturn, SynastryResult } from "./types";
export interface PublicSummary {
id: string;
@@ -16,13 +16,18 @@ export interface PublicSummary {
completed_at: string | null;
}
/** `GET /v1/public/shares/{slug}` of a shared chart. */
type SharedChart = { label: string | null; chart: ChartResult & { time_known: boolean } };
/** `GET /v1/public/shares/{slug}`: a chart, a comparison or a yearly forecast. */
export interface PublicShare {
kind: "chart" | "synastry" | "analysis";
kind: "chart" | "synastry" | "analysis" | "forecast";
title: string | null;
created_at: string;
chart?: { label: string; chart: ChartResult & { time_known: boolean } };
chart?: SharedChart;
summary?: PublicSummary | null;
synastry?: { chart1: SharedChart; chart2: SharedChart; synastry: SynastryResult };
forecast?: { year: number; forecast: Forecast; solar_return: SolarReturn | null };
analysis?: { kind: string; language: string; content: AnalysisContent | null; completed_at: string | null } | null;
}
const SLUG = /^[A-Za-z0-9_-]{8,64}$/;