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:
@@ -13,6 +13,7 @@ import { PostBody } from "./PostBody";
|
||||
import type { LiveNotice } from "./ForumNav";
|
||||
import { ReactionIcon } from "./ReactionIcon";
|
||||
import { ReportForm } from "./ReportButton";
|
||||
import { ShareCard } from "./ShareCard";
|
||||
import { TypingLine, useTypingSender, useTypingWatch } from "./typing";
|
||||
import { Badge, RankBadge } from "./Badges";
|
||||
|
||||
@@ -27,6 +28,8 @@ type Actions = {
|
||||
remove: (post: ForumPost) => void;
|
||||
restore: (post: ForumPost) => void;
|
||||
helped: (post: ForumPost) => void;
|
||||
/** The author takes the shared chart off their question. */
|
||||
detachShare: (post: ForumPost) => void;
|
||||
/** Mute or unmute the post's author. */
|
||||
mute: (post: ForumPost) => void;
|
||||
};
|
||||
@@ -228,6 +231,8 @@ function PostCard({
|
||||
menuItems.push({ label: post.helped ? "Mégsem segített" : "Ez segített", run: () => actions.helped(post) });
|
||||
}
|
||||
if (post.own && writer && !thread.locked) menuItems.push({ label: "Szerkesztés", run: () => setEditing(true) });
|
||||
if (post.own && post.share && !post.share.revoked)
|
||||
menuItems.push({ label: "Képlet levétele", run: () => actions.detachShare(post) });
|
||||
if (post.own) menuItems.push({ label: "Törlés", run: () => actions.remove(post), danger: true });
|
||||
if (viewer.logged_in && !post.own) menuItems.push({ label: "Jelentés", run: () => setReporting(true) });
|
||||
if (viewer.member && !post.own && author && !post.system)
|
||||
@@ -328,7 +333,12 @@ function PostCard({
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
post.body !== null && <PostBody text={post.body} mentions={post.mentions} />
|
||||
post.body !== null && (
|
||||
<>
|
||||
<PostBody text={post.body} mentions={post.mentions} />
|
||||
{post.share && <ShareCard share={post.share} />}
|
||||
</>
|
||||
)
|
||||
)}
|
||||
</div>
|
||||
{!editing && (!post.deleted || menuItems.length > 0) && (
|
||||
@@ -534,6 +544,13 @@ export function ThreadView({ initial }: { initial: ThreadPage }) {
|
||||
await api(`/forum/posts/${post.id}/restore`, { method: "POST" });
|
||||
await reload();
|
||||
}),
|
||||
detachShare: (post) => {
|
||||
if (!window.confirm("Leveszed a csatolt képletet? A kártya eltűnik, és a link sem működik többé.")) return;
|
||||
void run(async () => {
|
||||
await api(`/forum/posts/${post.id}/share`, { method: "DELETE" });
|
||||
await reload();
|
||||
});
|
||||
},
|
||||
mute: (post) => {
|
||||
const nickname = post.author?.nickname;
|
||||
if (!nickname) return;
|
||||
|
||||
Reference in New Issue
Block a user