Privacy policy: the forum, and the export and retention it states
Both languages: rows for the forum profile, posts, last visit, private conversations, reports and the moderation log (DSA legal obligation); what is public and what moderators see; forum content never goes to AI; retention periods; the forum theme cookie; the rights (the export covers the forum, posts kept as "Törölt tag" can be deleted on request). In force from 2026-11-26. So that it holds: the account export includes the forum, and the hourly cleanup clears text removed by moderators after a year, closed reports and old ban reasons after a year, the moderation log after two years, and requests never accepted after 90 days. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
+16
-2
@@ -107,15 +107,30 @@ Jelölés: ami mellett **(javaslat)** áll, azt még nem hagytuk jóvá, a több
|
||||
- **a bejelentőnek** a döntésről: eltávolítottuk, intézkedtünk, vagy nem találtunk szabálysértést.
|
||||
- **Fiók törlése:** a hozzászólások „Törölt tag” néven maradnak (eldöntve).
|
||||
|
||||
- **Adatvédelmi tájékoztató** (magyarul és angolul):
|
||||
- **Adattábla:** új sorok a fórumprofilról, a hozzászólásokról, az utolsó látogatásról, a privát beszélgetésekről, a jelentésekről és a moderálási naplóról. Utóbbiak jogalapja a DSA szerinti jogi kötelezettség.
|
||||
- **Új bekezdések:**
|
||||
- mi látszik nyilvánosan, és mit látnak a moderátorok;
|
||||
- a fórum tartalmát nem kapja meg az AI;
|
||||
- a megőrzési idők;
|
||||
- a második süti (`sf_forum_theme`);
|
||||
- a jogoknál a fórum adatai és a „Törölt tag” törlésének kérése.
|
||||
- **Hatály:** 2026. november 26.
|
||||
- **Adatexport:** a Profil oldali letöltés (backend `/v1/me/export`) a fórumot is tartalmazza: profil, hozzászólások, reakciók, követések, beszélgetések, elküldött üzenetek és jelentések.
|
||||
- **Megőrzés** (a worker óránkénti takarítása):
|
||||
- a moderátor által eltávolított szöveg 1 év után törlődik, a helye és az indoklás marad;
|
||||
- a lezárt jelentések és a lejárt eltiltások oka 1 év után törlődik, a moderálási napló 2 év után;
|
||||
- az el nem fogadott kérések 90 nap után törlődnek, és a régi álnevek foglalása is 90 nap után jár le.
|
||||
|
||||
### Élesítéskor
|
||||
|
||||
- `FORUM_URL=http://forum:8083` az éles `.env`-be.
|
||||
- Az adatvédelmi tájékoztató dátumát (`PRIVACY_UPDATED` és `PRIVACY_UPDATED_EN` a `legal.ts`-ben) szintén az élesítés napjára kell írni.
|
||||
- Az ÁSZF hatálybalépési dátumát (`TERMS_UPDATED` a `services/frontend/src/lib/legal.ts`-ben és `TERMS_VERSION` a `services/backend/src/routes/payments.rs`-ben) az élesítés napjára kell átírni, ha az nem 2026. november 26.
|
||||
- Ha közben a `main`-re új migráció került, a fórumé (0038–0040) ütközhet vele, és át kell számozni.
|
||||
|
||||
### Ami még hátravan
|
||||
|
||||
- **Adatvédelmi tájékoztató:** még ki kell egészíteni a fórummal: az álnév, a hozzászólások, a privát üzenetek, a jelentések, a moderálási napló, az online jelzés, a megosztott jegyek, az e-mail értesítések, a megőrzési idők, és hogy fióktörlés után a hozzászólások „Törölt tag” néven maradnak.
|
||||
|
||||
- **Hírlevél:** az oldalnak még nincs hírlevele. Ha lesz, külön, kifejezett hozzájárulással, nem a fórum beállításai között.
|
||||
- **WebSocket-csengő** a lekérdezés helyett.
|
||||
@@ -123,7 +138,6 @@ Jelölés: ami mellett **(javaslat)** áll, azt még nem hagytuk jóvá, a több
|
||||
- **AI-funkciók:** előszűrés, lelki krízis jelzése, az AI-összefoglaló kártya a főoldalon.
|
||||
- **Saját avatar feltöltése** (Spaces), és a „Támogató” jelvény.
|
||||
- **Zárt témák** jóváhagyással (a séma tudja, a felület még nem).
|
||||
- **Adatexport:** a backend adatexportja még nem tartalmazza a fórumot (álnév, hozzászólások, üzenetek).
|
||||
|
||||
## Cél
|
||||
|
||||
|
||||
@@ -179,6 +179,14 @@ pub async fn export(State(state): St, auth: AuthUser) -> ApiResult<impl IntoResp
|
||||
"questions": rows("SELECT json_build_object('id', q.id, 'analysis_id', q.analysis_id, 'question', q.question, 'status', q.status, 'answer', q.answer, 'created_at', q.created_at) FROM questions q WHERE q.asked_by = $1").await?,
|
||||
"credit_ledger": rows("SELECT json_build_object('unit', unit, 'delta', delta, 'reason', reason, 'note', note, 'created_at', created_at) FROM credit_ledger WHERE user_id = $1 ORDER BY created_at").await?,
|
||||
"shares": rows("SELECT json_build_object('slug', slug, 'kind', kind, 'title', title, 'show_birth_data', show_birth_data, 'view_count', view_count, 'created_at', created_at, 'revoked_at', revoked_at) FROM shares WHERE owner_id = $1").await?,
|
||||
// The forum (services/forum): what the user wrote and set there.
|
||||
"forum_profile": rows("SELECT json_build_object('nickname', nickname, 'avatar', avatar, 'bio', bio, 'chart_share', chart_share, 'invisible', invisible, 'points', points, 'post_count', post_count, 'created_at', created_at, 'email_replies', email_replies, 'email_followed', email_followed, 'email_messages', email_messages, 'banned_until', banned_until, 'ban_reason', ban_reason) FROM forum.members WHERE user_id = $1").await?,
|
||||
"forum_posts": rows("SELECT json_build_object('id', p.id, 'thread_id', p.thread_id, 'thread_title', th.title, 'opening', p.is_opening, 'body', p.body, 'created_at', p.created_at, 'edited_at', p.edited_at, 'removed_at', p.deleted_at, 'removal_reason', p.delete_reason) FROM forum.posts p JOIN forum.threads th ON th.id = p.thread_id WHERE p.author_id = $1 ORDER BY p.id").await?,
|
||||
"forum_reactions": rows("SELECT json_build_object('post_id', post_id, 'kind', kind, 'created_at', created_at) FROM forum.reactions WHERE user_id = $1 ORDER BY created_at").await?,
|
||||
"forum_followed_threads": rows("SELECT json_build_object('thread_id', thread_id, 'since', created_at) FROM forum.follows WHERE user_id = $1").await?,
|
||||
"forum_conversations": rows("SELECT json_build_object('id', c.id, 'with', m.nickname, 'requested_by_me', c.requested_by = $1, 'intro', c.intro, 'status', c.status, 'created_at', c.created_at) FROM forum.conversations c LEFT JOIN forum.members m ON m.user_id = CASE WHEN c.user_a = $1 THEN c.user_b ELSE c.user_a END WHERE $1 IN (c.user_a, c.user_b)").await?,
|
||||
"forum_messages_sent": rows("SELECT json_build_object('conversation_id', conversation_id, 'body', body, 'created_at', created_at) FROM forum.messages WHERE sender_id = $1 ORDER BY id").await?,
|
||||
"forum_reports_sent": rows("SELECT json_build_object('post_id', post_id, 'message_id', message_id, 'kind', kind, 'note', note, 'status', status, 'created_at', created_at) FROM forum.reports WHERE reporter_id = $1").await?,
|
||||
});
|
||||
Ok(([("content-disposition", "attachment; filename=\"sorsfonalak-export.json\"")], Json(document)))
|
||||
}
|
||||
|
||||
@@ -1024,12 +1024,39 @@ async fn export_and_delete_account(pool: PgPool) {
|
||||
assert_eq!(r.status, StatusCode::CREATED, "{}", r.body);
|
||||
let r = app.post("/v1/synastries", Some(&anna), json!({"chart1_id": b["id"], "chart2_id": a["id"]})).await;
|
||||
assert_eq!(r.status, StatusCode::OK); // already exists
|
||||
// Anna also wrote in the forum (services/forum keeps it in the same database).
|
||||
let (anna_id,): (uuid::Uuid,) =
|
||||
sqlx::query_as("SELECT id FROM users WHERE email = 'anna@example.com'").fetch_one(&app.pool).await.unwrap();
|
||||
sqlx::query(
|
||||
"INSERT INTO forum.members (user_id, nickname, nickname_key, avatar) \
|
||||
VALUES ($1, 'Holdfény', 'holdfeny', 'hold-ejkek')",
|
||||
)
|
||||
.bind(anna_id)
|
||||
.execute(&app.pool)
|
||||
.await
|
||||
.unwrap();
|
||||
let thread: i64 = sqlx::query_scalar(
|
||||
"INSERT INTO forum.threads (topic_id, author_id, title) VALUES (4, $1, 'Téli levesek') RETURNING id",
|
||||
)
|
||||
.bind(anna_id)
|
||||
.fetch_one(&app.pool)
|
||||
.await
|
||||
.unwrap();
|
||||
sqlx::query("INSERT INTO forum.posts (thread_id, author_id, is_opening, body) VALUES ($1, $2, true, 'Sütőtök')")
|
||||
.bind(thread)
|
||||
.bind(anna_id)
|
||||
.execute(&app.pool)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let r = app.get("/v1/me/export", Some(&anna)).await;
|
||||
assert_eq!(r.status, StatusCode::OK);
|
||||
assert_eq!(r.body["charts"].as_array().unwrap().len(), 2);
|
||||
assert_eq!(r.body["synastries"].as_array().unwrap().len(), 1);
|
||||
assert!(r.body["login_methods"][0].get("password_hash").is_none());
|
||||
assert_eq!(r.body["forum_profile"][0]["nickname"], "Holdfény");
|
||||
assert_eq!(r.body["forum_posts"][0]["body"], "Sütőtök");
|
||||
assert_eq!(r.body["forum_posts"][0]["thread_title"], "Téli levesek");
|
||||
|
||||
let r = app.call("DELETE", "/v1/me", Some(&anna), Some(json!({"confirm": "yes"}))).await;
|
||||
assert_eq!(r.status, StatusCode::BAD_REQUEST);
|
||||
@@ -1041,6 +1068,15 @@ async fn export_and_delete_account(pool: PgPool) {
|
||||
assert_eq!(r.status, StatusCode::UNAUTHORIZED);
|
||||
let (left,): (i64,) = sqlx::query_as("SELECT count(*) FROM charts").fetch_one(&app.pool).await.unwrap();
|
||||
assert_eq!(left, 0);
|
||||
// Her forum profile is gone; her thread stays, by "Törölt tag" (no author).
|
||||
let (members, author): (i64, Option<uuid::Uuid>) = sqlx::query_as(
|
||||
"SELECT (SELECT count(*) FROM forum.members), (SELECT author_id FROM forum.threads WHERE id = $1)",
|
||||
)
|
||||
.bind(thread)
|
||||
.fetch_one(&app.pool)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!((members, author), (0, None));
|
||||
assert_eq!(app.get("/v1/me", Some(&bela)).await.status, StatusCode::OK);
|
||||
}
|
||||
|
||||
|
||||
@@ -147,6 +147,46 @@ export default async function PrivacyPage() {
|
||||
<td>Hibák kijavítása, kérdések megválaszolása</td>
|
||||
<td>Jogos érdek (6. cikk (1) f)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Fórumprofilod: az álneved (a korábbiakat 90 napig, hogy más ne vehesse fel), az avatarod, a
|
||||
bemutatkozásod, a képletedből megosztott jegyek, a láthatatlan mód és az e-mail-értesítések
|
||||
beállítása
|
||||
</td>
|
||||
<td>Részvétel a fórumon; a jegyek megosztása a saját döntésed</td>
|
||||
<td>Szerződés teljesítése</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
A fórumon írt szálaid és hozzászólásaid, a reakcióid és „Ez segített” jelöléseid, a pontjaid és a
|
||||
rangod; hogy mit olvastál el, és mely szálakat követed
|
||||
</td>
|
||||
<td>A fórum működése, a rangok, az újdonságok jelzése</td>
|
||||
<td>Szerződés teljesítése</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mikor jártál utoljára a fórumon</td>
|
||||
<td>Az online jelzés (zöld pötty); a láthatatlan móddal kikapcsolhatod</td>
|
||||
<td>Szerződés teljesítése</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Privát beszélgetéseid: a kérések bemutatkozása, az elfogadás, elutasítás vagy tiltás, és az
|
||||
üzenetek
|
||||
</td>
|
||||
<td>Privát beszélgetés más tagokkal</td>
|
||||
<td>Szerződés teljesítése</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
Jelentések (ki, mit, milyen okból jelentett), a moderálási napló (ki, mikor, mit és miért döntött), az
|
||||
eltiltások ideje és oka
|
||||
</td>
|
||||
<td>A házirend betartatása, a bejelentések kezelése, a döntések visszakereshetősége</td>
|
||||
<td>
|
||||
Jogi kötelezettség ((EU) 2022/2065 rendelet, DSA; 6. cikk (1) c); jogos érdek (6. cikk (1) f)
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>IP-cím, böngésző adatai, a kérések ideje (szervernaplók)</td>
|
||||
<td>Biztonság, hibakeresés, visszaélések kiszűrése</td>
|
||||
@@ -170,6 +210,15 @@ export default async function PrivacyPage() {
|
||||
képlet rajzát és a legfrissebb rövid összefoglalót. Nevet és születési adatot nem tesz közzé, a keresők nem
|
||||
listázzák, és a linket bármikor visszavonhatod.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Fórum:</strong> amit a nyilvános témákban írsz, bárki láthatja, a keresők is; a csak tagoknak szóló
|
||||
témákat csak belépett felhasználók látják. A hozzászólásaid mellett az álneved, az avatarod, a rangod és az
|
||||
általad megosztott jegyek látszanak; a valódi neved, az e-mail-címed és a születési adataid nem, és a
|
||||
képletedből soha nem mutatunk fokokat. A privát üzeneteidet csak a beszélgetés két résztvevője látja; a
|
||||
moderátorok csak akkor, ha valaki egy üzenetet jelent, és akkor is csak a jelentett üzenetet és az előtte
|
||||
lévő néhányat. A moderátorok (az üzemeltető által kijelölt tagok) a valódi nevedet és az e-mail-címedet nem
|
||||
látják. A fórum szabályai az <Link href="/aszf#forum">ÁSZF 8. pontjában</Link> vannak.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@@ -186,7 +235,8 @@ export default async function PrivacyPage() {
|
||||
</ul>
|
||||
<p>
|
||||
<strong>Mire használjuk:</strong> a fiókod létrehozására és arra, hogy belépéskor felismerjünk; az
|
||||
e-mail-címedet a rendszerlevelekhez (például ha elkészült egy elemzésed vagy elfogadták a meghívódat); a
|
||||
e-mail-címedet a rendszerlevelekhez (például ha elkészült egy elemzésed, elfogadták a meghívódat, vagy
|
||||
válasz érkezett a fórumon, ha ezt kérted); a
|
||||
nevedet a megjelenítéshez; a nyelvet az oldal és az elemzések nyelvéhez.
|
||||
</p>
|
||||
<p>
|
||||
@@ -234,6 +284,10 @@ export default async function PrivacyPage() {
|
||||
kérdéseidbe se írj neveket vagy érzékeny adatot (például egészségügyi adatot). Az elemzés szórakoztató és
|
||||
önismereti célú szöveg, nem minősül egészségügyi, pénzügyi, jogi vagy más szakmai tanácsnak.
|
||||
</p>
|
||||
<p>
|
||||
A fórumon írt hozzászólásokat és a privát üzeneteket nem küldjük el mesterséges intelligenciának. Ha ezt
|
||||
később bevezetnénk (például a kéretlen hirdetések kiszűrésére), előtte itt jelezzük.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@@ -299,14 +353,29 @@ export default async function PrivacyPage() {
|
||||
törlése után név és megjegyzés nélkül, statisztikaként megtartjuk.
|
||||
</li>
|
||||
<li>A számlázáshoz szükséges adatokat a számviteli törvény szerinti ideig (8 évig) őrizzük.</li>
|
||||
<li>
|
||||
A fórumprofilodat, a privát beszélgetéseidet, a reakcióidat és a követéseidet a fiókod törléséig. A fiók
|
||||
törlésekor a privát beszélgetéseid a másik fél számára is törlődnek. A szálaid és a hozzászólásaid „Törölt
|
||||
tag” néven megmaradnak, hogy a beszélgetések érthetők maradjanak; ha a törlésüket is kéred, írj a fenti
|
||||
e-mail-címre.
|
||||
</li>
|
||||
<li>
|
||||
A moderátor által eltávolított hozzászólás szövegét az esetleges kifogás miatt 1 évig őrizzük, utána csak a
|
||||
helye és az indoklás marad. A lezárt jelentéseket és a lejárt eltiltások okát 1 évig, a moderálási naplót
|
||||
2 évig őrizzük.
|
||||
</li>
|
||||
<li>
|
||||
Az el nem fogadott beszélgetési kéréseket 90 nap után töröljük. A korábbi álneveidet 90 napig foglaljuk le.
|
||||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>8. Sütik</h2>
|
||||
<p>
|
||||
Csak egy, a működéshez feltétlenül szükséges sütit használunk (<code>sf_session</code>), amely belépve
|
||||
tart. Reklám- vagy követő sütiket, illetve látogatottságmérőt nem használunk.
|
||||
A működéshez feltétlenül szükséges sütit használunk (<code>sf_session</code>), amely belépve tart. Ha a
|
||||
fórumon világos vagy sötét témát választasz, a választásodat egy második süti (<code>sf_forum_theme</code>)
|
||||
őrzi egy évig; mást nem tárol. Reklám- vagy követő sütiket, illetve látogatottságmérőt nem használunk.
|
||||
</p>
|
||||
<p>
|
||||
A belépés nélküli <Link href="/szuletesi-horoszkop">születési horoszkópnál</Link> a megadott születési adatokat
|
||||
@@ -323,13 +392,15 @@ export default async function PrivacyPage() {
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Hozzáférés és adathordozhatóság:</strong> a <Link href="/profil#adataim">Profil</Link> oldalon
|
||||
egy kattintással letöltheted minden adatodat.
|
||||
egy kattintással letöltheted minden adatodat, a fórumon írtakat és beállítottakat is.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Helyesbítés:</strong> a nevedet és a születési adataidat a Profil oldalon módosíthatod.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Törlés:</strong> a fiókodat és minden adatodat a Profil oldalon törölheted.
|
||||
<strong>Törlés:</strong> a fiókodat és minden adatodat a Profil oldalon törölheted. A fórumon a saját
|
||||
hozzászólásaidat egyenként is törölheted; a fiók törlése után „Törölt tag” néven maradók törlését
|
||||
e-mailben kérheted.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Korlátozás és tiltakozás:</strong> a fenti e-mail-címen kérheted.
|
||||
|
||||
@@ -84,6 +84,31 @@ const DATA: [string, string, string][] = [
|
||||
"Fixing bugs, answering questions",
|
||||
"Legitimate interest (Art. 6(1)(f))",
|
||||
],
|
||||
[
|
||||
"Your forum profile: your nickname (earlier ones for 90 days, so nobody else can take them), avatar, introduction, the signs of your chart you share, the invisible mode and your e-mail notification settings",
|
||||
"Taking part in the forum; sharing the signs is your choice",
|
||||
"Performance of the contract",
|
||||
],
|
||||
[
|
||||
"Your forum threads and posts, your reactions and “Ez segített” (it helped) marks, your points and rank; what you have read, and the threads you follow",
|
||||
"Running the forum, the ranks, showing what is new",
|
||||
"Performance of the contract",
|
||||
],
|
||||
[
|
||||
"When you were last on the forum",
|
||||
"The online indicator (green dot); you can turn it off with the invisible mode",
|
||||
"Performance of the contract",
|
||||
],
|
||||
[
|
||||
"Your private conversations: the introductions of requests, accepting, declining or blocking, and the messages",
|
||||
"Private conversations with other members",
|
||||
"Performance of the contract",
|
||||
],
|
||||
[
|
||||
"Reports (who reported what, and why), the moderation log (who decided what, when and why), the length and reason of bans",
|
||||
"Enforcing the house rules, handling reports, keeping decisions traceable",
|
||||
"Legal obligation (Regulation (EU) 2022/2065, the DSA; Art. 6(1)(c)); legitimate interest (Art. 6(1)(f))",
|
||||
],
|
||||
[
|
||||
"IP address, browser details, request times (server logs)",
|
||||
"Security, troubleshooting, preventing abuse",
|
||||
@@ -157,6 +182,15 @@ export default async function PrivacyPolicyPage() {
|
||||
the latest short summary. It shows no name or birth data, search engines do not list it, and you can revoke
|
||||
the link at any time.
|
||||
</p>
|
||||
<p>
|
||||
<strong>Forum:</strong> what you write in the public topics can be seen by anyone, including search engines;
|
||||
the members-only topics are seen only by logged-in users. Next to your posts we show your nickname, avatar,
|
||||
rank and the signs you chose to share; never your real name, e-mail address or birth data, and never the
|
||||
degrees of your chart. Your private messages are seen only by the two people in the conversation; moderators
|
||||
see a message only when someone reports it, and then only that message and the few before it. Moderators
|
||||
(members appointed by the operator) do not see your real name or e-mail address. The forum rules are in
|
||||
point 8 of the <Link href="/aszf#forum">terms (ÁSZF, in Hungarian)</Link>.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@@ -173,7 +207,8 @@ export default async function PrivacyPolicyPage() {
|
||||
</ul>
|
||||
<p>
|
||||
<strong>How we use it:</strong> to create your account and recognise you when you sign in; your e-mail address
|
||||
for service e-mails (for example when a reading is ready or an invitation was accepted); your name for display;
|
||||
for service e-mails (for example when a reading is ready, an invitation was accepted, or someone replied on the
|
||||
forum, if you asked for it); your name for display;
|
||||
your language for the language of the site and your readings.
|
||||
</p>
|
||||
<p>
|
||||
@@ -222,6 +257,10 @@ export default async function PrivacyPolicyPage() {
|
||||
your questions either. The readings are for entertainment and self-reflection and are not medical,
|
||||
financial, legal or other professional advice.
|
||||
</p>
|
||||
<p>
|
||||
Forum posts and private messages are not sent to artificial intelligence. Should we introduce this later (for
|
||||
example to filter out unsolicited advertising), we will say so here first.
|
||||
</p>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
@@ -286,14 +325,26 @@ export default async function PrivacyPolicyPage() {
|
||||
after that as statistics, without your name and comment.
|
||||
</li>
|
||||
<li>Data needed for invoicing: for the period required by accounting law (8 years).</li>
|
||||
<li>
|
||||
Your forum profile, private conversations, reactions and followed threads: until you delete your account.
|
||||
When you delete it, your private conversations are deleted for the other person too. Your threads and
|
||||
posts stay, shown as “Törölt tag” (deleted member), so that the conversations remain readable; to have them
|
||||
deleted as well, write to the e-mail address above.
|
||||
</li>
|
||||
<li>
|
||||
The text of a post removed by a moderator: 1 year, for a possible objection; after that only its place and
|
||||
the reason stay. Closed reports and the reason of expired bans: 1 year; the moderation log: 2 years.
|
||||
</li>
|
||||
<li>Conversation requests never accepted: deleted after 90 days. Your earlier nicknames are reserved for 90 days.</li>
|
||||
</ul>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h2>8. Cookies</h2>
|
||||
<p>
|
||||
We use a single cookie that is strictly necessary for the service (<code>sf_session</code>), which keeps you
|
||||
signed in. We use no advertising or tracking cookies and no analytics.
|
||||
We use a cookie that is strictly necessary for the service (<code>sf_session</code>), which keeps you signed
|
||||
in. If you choose the light or dark theme on the forum, a second cookie (<code>sf_forum_theme</code>) keeps
|
||||
your choice for a year; it stores nothing else. We use no advertising or tracking cookies and no analytics.
|
||||
</p>
|
||||
<p>
|
||||
On the public birth chart page (no account needed), the birth data you enter are sent only for the
|
||||
@@ -309,14 +360,16 @@ export default async function PrivacyPolicyPage() {
|
||||
<h2>9. Your rights</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<strong>Access and portability:</strong> download all your data with one click on the{" "}
|
||||
<Link href="/profil#adataim">Profile</Link> page.
|
||||
<strong>Access and portability:</strong> download all your data, including what you wrote and set on the
|
||||
forum, with one click on the <Link href="/profil#adataim">Profile</Link> page.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Rectification:</strong> change your name and birth data on the Profile page.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Erasure:</strong> delete your account and all your data on the Profile page.
|
||||
<strong>Erasure:</strong> delete your account and all your data on the Profile page. You can delete your
|
||||
own forum posts one by one too; to have the ones kept as “Törölt tag” deleted after your account is gone,
|
||||
write to us.
|
||||
</li>
|
||||
<li>
|
||||
<strong>Restriction and objection:</strong> ask us at the e-mail address above.
|
||||
|
||||
@@ -18,8 +18,8 @@ export const ARBITRATION_BOARD = {
|
||||
web: "https://panaszrendezes.hu",
|
||||
};
|
||||
|
||||
export const PRIVACY_UPDATED = "2026. november 24.";
|
||||
export const PRIVACY_UPDATED_EN = "24 November 2026";
|
||||
export const PRIVACY_UPDATED = "2026. november 26.";
|
||||
export const PRIVACY_UPDATED_EN = "26 November 2026";
|
||||
|
||||
/** The terms (ÁSZF) in force; the backend records this version with every purchase (TERMS_VERSION). */
|
||||
export const TERMS_UPDATED = "2026. november 26.";
|
||||
|
||||
@@ -8,7 +8,7 @@ use tokio::sync::watch;
|
||||
const INTERVAL: Duration = Duration::from_secs(3600);
|
||||
|
||||
/// (what, statement) pairs; each returns the number of deleted rows.
|
||||
const STATEMENTS: [(&str, &str); 8] = [
|
||||
const STATEMENTS: [(&str, &str); 16] = [
|
||||
("sessions", "DELETE FROM sessions WHERE expires_at < now()"),
|
||||
("auth_tokens", "DELETE FROM auth_tokens WHERE expires_at < now()"),
|
||||
// Sent e-mails contain links with tokens; keep them a week for support.
|
||||
@@ -30,6 +30,36 @@ const STATEMENTS: [(&str, &str); 8] = [
|
||||
// Gifts never paid (Stripe's payment page is long closed by then), with
|
||||
// the recipient's address in them.
|
||||
("gifts", "DELETE FROM gifts WHERE paid_at IS NULL AND created_at < now() - interval '7 days'"),
|
||||
// The forum (the privacy policy's retention periods): what moderators
|
||||
// removed is kept a year for objections, then only its place and reason stay.
|
||||
(
|
||||
"forum_removed_posts",
|
||||
"UPDATE forum.posts SET body = '' WHERE deleted_at < now() - interval '1 year' AND body <> ''",
|
||||
),
|
||||
(
|
||||
"forum_removed_threads",
|
||||
"UPDATE forum.posts p SET body = '' FROM forum.threads th \
|
||||
WHERE th.id = p.thread_id AND th.deleted_at < now() - interval '1 year' AND p.body <> ''",
|
||||
),
|
||||
(
|
||||
"forum_removed_titles",
|
||||
"UPDATE forum.threads SET title = 'Eltávolított szál' \
|
||||
WHERE deleted_at < now() - interval '1 year' AND title <> 'Eltávolított szál'",
|
||||
),
|
||||
("forum_nicknames", "DELETE FROM forum.retired_nicknames WHERE until < now()"),
|
||||
("forum_reports", "DELETE FROM forum.reports WHERE status <> 'open' AND handled_at < now() - interval '1 year'"),
|
||||
("forum_mod_log", "DELETE FROM forum.mod_log WHERE created_at < now() - interval '2 years'"),
|
||||
(
|
||||
"forum_bans",
|
||||
"UPDATE forum.members SET banned_until = NULL, ban_reason = NULL WHERE banned_until < now() - interval '1 year'",
|
||||
),
|
||||
// Requests never accepted (declined or expired), with their introduction;
|
||||
// a block stays as long as the blocker keeps it.
|
||||
(
|
||||
"forum_requests",
|
||||
"DELETE FROM forum.conversations WHERE status IN ('pending', 'declined') AND last_message_at IS NULL \
|
||||
AND coalesce(responded_at, created_at) < now() - interval '90 days'",
|
||||
),
|
||||
];
|
||||
|
||||
pub async fn run_once(db: &PgPool) -> Result<Vec<(&'static str, u64)>, sqlx::Error> {
|
||||
|
||||
@@ -273,6 +273,14 @@ async fn cleanup_removes_only_expired_data(db: PgPool) {
|
||||
("prompt_previews", 0),
|
||||
("generation_errors", 0),
|
||||
("gifts", 1),
|
||||
("forum_removed_posts", 0),
|
||||
("forum_removed_threads", 0),
|
||||
("forum_removed_titles", 0),
|
||||
("forum_nicknames", 0),
|
||||
("forum_reports", 0),
|
||||
("forum_mod_log", 0),
|
||||
("forum_bans", 0),
|
||||
("forum_requests", 0),
|
||||
]
|
||||
);
|
||||
let kept: Vec<Uuid> = sqlx::query_scalar("SELECT id FROM gifts ORDER BY id").fetch_all(&db).await.unwrap();
|
||||
@@ -282,6 +290,60 @@ async fn cleanup_removes_only_expired_data(db: PgPool) {
|
||||
assert_eq!(left, vec![recent, unsent]);
|
||||
}
|
||||
|
||||
#[sqlx::test(migrator = "db::MIGRATOR")]
|
||||
async fn cleanup_keeps_the_forum_retention_periods(db: PgPool) {
|
||||
let (anna, bea) = (Uuid::now_v7(), Uuid::now_v7());
|
||||
for (id, email) in [(anna, "anna@example.com"), (bea, "bea@example.com")] {
|
||||
sqlx::query("INSERT INTO users (id, email) VALUES ($1, $2)").bind(id).bind(email).execute(&db).await.unwrap();
|
||||
}
|
||||
let thread: i64 = sqlx::query_scalar(
|
||||
"INSERT INTO forum.threads (topic_id, author_id, title) VALUES (2, $1, 'Csend') RETURNING id",
|
||||
)
|
||||
.bind(anna)
|
||||
.fetch_one(&db)
|
||||
.await
|
||||
.unwrap();
|
||||
// Removed 13 months ago, removed last week, never removed.
|
||||
let mut posts = Vec::new();
|
||||
for removed in ["now() - interval '13 months'", "now() - interval '7 days'", "NULL"] {
|
||||
let id: i64 = sqlx::query_scalar(&format!(
|
||||
"INSERT INTO forum.posts (thread_id, author_id, body, deleted_at, delete_reason) VALUES ($1, $2, 'szöveg', {removed}, 'hirdetés') RETURNING id"
|
||||
))
|
||||
.bind(thread)
|
||||
.bind(bea)
|
||||
.fetch_one(&db)
|
||||
.await
|
||||
.unwrap();
|
||||
posts.push(id);
|
||||
}
|
||||
// A request declined long ago goes; an old conversation with messages stays.
|
||||
let (a, b) = if anna < bea { (anna, bea) } else { (bea, anna) };
|
||||
sqlx::query(
|
||||
"INSERT INTO forum.conversations (user_a, user_b, requested_by, intro, status, created_at, responded_at, last_message_at) VALUES ($1, $2, $1, 'Szia', 'declined', now() - interval '100 days', now() - interval '100 days', NULL)",
|
||||
)
|
||||
.bind(a)
|
||||
.bind(b)
|
||||
.execute(&db)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
let done = crate::cleanup::run_once(&db).await.unwrap();
|
||||
let count = |what: &str| done.iter().find(|(w, _)| *w == what).unwrap().1;
|
||||
assert_eq!((count("forum_removed_posts"), count("forum_requests")), (1, 1));
|
||||
let bodies: Vec<String> = sqlx::query_scalar("SELECT body FROM forum.posts WHERE id = ANY($1) ORDER BY id")
|
||||
.bind(&posts)
|
||||
.fetch_all(&db)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(bodies, vec!["", "szöveg", "szöveg"], "only the text removed over a year ago goes");
|
||||
let reason: Option<String> = sqlx::query_scalar("SELECT delete_reason FROM forum.posts WHERE id = $1")
|
||||
.bind(posts[0])
|
||||
.fetch_one(&db)
|
||||
.await
|
||||
.unwrap();
|
||||
assert_eq!(reason.as_deref(), Some("hirdetés"), "its place and reason stay");
|
||||
}
|
||||
|
||||
// --- analyses ----------------------------------------------------------------------------
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user