Skip to content

web search done right

Privacy policy refer to multiple lines regarding exactly what data is collected

Mikkel Denkere7ea348d7a37
diff --git a/core/src/query_store.rs b/core/src/query_store.rs
index 402d5403..eea4f301 100644
--- a/core/src/query_store.rs
+++ b/core/src/query_store.rs
@@ -43,6 +43,11 @@ pub struct StoredQuery {
timestamp: Option<DateTime<Utc>>, // it is extremely important that we strip minutes, seconds and nanoseconds here for privacy
}
+pub enum ImprovementEvent {
+ StoreQuery(StoredQuery),
+ Click { qid: Uuid, idx: usize },
+}
+
impl StoredQuery {
pub fn new(query: String, urls: Vec<Url>) -> Self {
let timestamp = Utc::now()
@@ -65,11 +70,6 @@ impl StoredQuery {
}
}
-pub enum ImprovementEvent {
- StoreQuery(StoredQuery),
- Click { qid: Uuid, idx: usize },
-}
-
async fn dump_queue(queue: &Mutex<LeakyQueue<ImprovementEvent>>) -> Vec<ImprovementEvent> {
let mut res = Vec::new();
let mut lock = queue.lock().await;
diff --git a/frontend/src/pages/settings/privacy.astro b/frontend/src/pages/settings/privacy.astro
index 76030984..d5dfe2cd 100644
--- a/frontend/src/pages/settings/privacy.astro
+++ b/frontend/src/pages/settings/privacy.astro
@@ -11,7 +11,7 @@ import SettingsLayout from "../../layouts/Settings.astro";
<div class="text-sm">
It is important to note, that <b class="font-extrabold">no</b> personal information is stored about your search. We don't store your IP, browser fingerprint or even a precise timestamp.
- In fact, you can see exactly what gets stored <a href="https://github.com/StractOrg/Stract/blob/main/core/src/query_store.rs#L36">here</a>.
+ In fact, you can see exactly what gets stored <a href="https://github.com/StractOrg/Stract/blob/main/core/src/query_store.rs#L36-#L49">here</a>.
</div>
<div class="text-sm">