about summary refs log tree commit diff
path: root/src/state/persisted
diff options
context:
space:
mode:
authordan <dan.abramov@gmail.com>2024-11-22 23:28:45 +0000
committerGitHub <noreply@github.com>2024-11-22 23:28:45 +0000
commitac5b2cf31f2bb45f1bf8a180705249d3cce8017d (patch)
tree83af7c9781cdac5f561312fd1fe1d4048aad4342 /src/state/persisted
parentfee2f5daa24da55f178af355623057c11b3e387b (diff)
downloadvoidsky-ac5b2cf31f2bb45f1bf8a180705249d3cce8017d.tar.zst
Pass referrer on native (with an opt out) (#6648)
* Pass referer on native

* Add ChainLink3

* Add an opt out for sending utm

* Remove noreferrer on links

We do have <meta name="referrer" content="origin-when-cross-origin"> in HTML, should be sufficient.

* Narrow down the condition slightly

---------

Co-authored-by: Eric Bailey <git@esb.lol>
Diffstat (limited to 'src/state/persisted')
-rw-r--r--src/state/persisted/schema.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/persisted/schema.ts b/src/state/persisted/schema.ts
index 804017949..85a6bf8e2 100644
--- a/src/state/persisted/schema.ts
+++ b/src/state/persisted/schema.ts
@@ -124,6 +124,7 @@ const schema = z.object({
   subtitlesEnabled: z.boolean().optional(),
   /** @deprecated */
   mutedThreads: z.array(z.string()),
+  optOutOfUtm: z.boolean().optional(),
 })
 export type Schema = z.infer<typeof schema>
 
@@ -169,6 +170,7 @@ export const defaults: Schema = {
   kawaii: false,
   hasCheckedForStarterPack: false,
   subtitlesEnabled: true,
+  optOutOfUtm: false,
 }
 
 export function tryParse(rawData: string): Schema | undefined {