From 1af55d3b051b2658c82af9e2c9f55b0d185e2b28 Mon Sep 17 00:00:00 2001 From: feco Date: Thu, 19 Nov 2026 13:26:00 +0000 Subject: [PATCH] Privacy policy: contact info@sorsfonalak.hu, no placeholders MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The contact address is info@sorsfonalak.hu. The operator's name, address and registration come with the company; until then the pages leave that part out instead of showing 'kitöltendő' placeholders. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL --- services/frontend/src/app/adatvedelem/page.tsx | 17 +++++++++++++---- services/frontend/src/app/privacy/page.tsx | 18 +++++++++++++----- services/frontend/src/lib/legal.ts | 16 ++++++++++++---- 3 files changed, 38 insertions(+), 13 deletions(-) diff --git a/services/frontend/src/app/adatvedelem/page.tsx b/services/frontend/src/app/adatvedelem/page.tsx index 85ba3fe..3b71040 100644 --- a/services/frontend/src/app/adatvedelem/page.tsx +++ b/services/frontend/src/app/adatvedelem/page.tsx @@ -2,7 +2,7 @@ import type { Metadata } from "next"; import Link from "next/link"; import { PublicHeader } from "@/components/SiteHeader"; -import { OPERATOR, PRIVACY_UPDATED } from "@/lib/legal"; +import { OPERATOR, PRIVACY_UPDATED, operatorDetails } from "@/lib/legal"; import { getMe } from "@/lib/server"; export const metadata: Metadata = { @@ -29,9 +29,18 @@ export default async function PrivacyPage() {

1. Ki kezeli az adataidat?

- A Sorsfonalak szolgáltatás (sorsfonalak.hu) adatkezelője: {OPERATOR.name}, {OPERATOR.address} - {OPERATOR.registration ? `, ${OPERATOR.registration}` : ""}. Adatvédelmi kérdésekben itt érsz el minket:{" "} - {OPERATOR.email}. + {operatorDetails() ? ( + <> + A Sorsfonalak szolgáltatás (sorsfonalak.hu) adatkezelője: {operatorDetails()}.{" "} + + ) : ( + "A Sorsfonalak szolgáltatás (sorsfonalak.hu) adatkezelőjét e-mailben éred el. " + )} + Adatvédelmi és minden más kérdésben itt érsz el minket:{" "} + + {OPERATOR.email} + + .

diff --git a/services/frontend/src/app/privacy/page.tsx b/services/frontend/src/app/privacy/page.tsx index 8646fbe..144af53 100644 --- a/services/frontend/src/app/privacy/page.tsx +++ b/services/frontend/src/app/privacy/page.tsx @@ -2,7 +2,7 @@ import type { Metadata } from "next"; import Link from "next/link"; import { PublicHeader } from "@/components/SiteHeader"; -import { OPERATOR, PRIVACY_UPDATED_EN } from "@/lib/legal"; +import { OPERATOR, PRIVACY_UPDATED_EN, operatorDetails } from "@/lib/legal"; import { getMe } from "@/lib/server"; export const metadata: Metadata = { @@ -75,10 +75,18 @@ export default async function PrivacyPolicyPage() {

1. Who is responsible for your data?

- The controller of the Sorsfonalak service (sorsfonalak.hu) is {OPERATOR.name},{" "} - {OPERATOR.address} - {OPERATOR.registration ? `, ${OPERATOR.registration}` : ""}. For any privacy question, contact us at{" "} - {OPERATOR.email}. + {operatorDetails() ? ( + <> + The controller of the Sorsfonalak service (sorsfonalak.hu) is {operatorDetails()}.{" "} + + ) : ( + "The controller of the Sorsfonalak service (sorsfonalak.hu) can be reached by e-mail. " + )} + For any privacy or other question, contact us at{" "} + + {OPERATOR.email} + + .

diff --git a/services/frontend/src/lib/legal.ts b/services/frontend/src/lib/legal.ts index 0bf332a..daebda4 100644 --- a/services/frontend/src/lib/legal.ts +++ b/services/frontend/src/lib/legal.ts @@ -1,11 +1,19 @@ -// Operator details shown on the legal pages. Fill these in before launch. +// Operator details shown on the legal pages. The name, address and +// registration come with the company (at the opening); until then the pages +// leave them out and give the contact address only. export const OPERATOR = { - name: "[Üzemeltető neve – kitöltendő]", - address: "[Székhely / postacím – kitöltendő]", - email: "[Kapcsolattartási e-mail – kitöltendő]", + name: null as string | null, + address: null as string | null, + email: "info@sorsfonalak.hu", /** Company registration and tax number, if the operator is a company. */ registration: null as string | null, }; +/** Name, address and registration as one phrase ("Kft., 1234 Budapest, …"), or null. */ +export function operatorDetails(): string | null { + const parts = [OPERATOR.name, OPERATOR.address, OPERATOR.registration].filter(Boolean); + return parts.length > 0 ? parts.join(", ") : null; +} + export const PRIVACY_UPDATED = "2026. november 19."; export const PRIVACY_UPDATED_EN = "19 November 2026";