From d60e2a17523a8863fef89a834bc9fb5ff4834240 Mon Sep 17 00:00:00 2001 From: Tom Sherman Date: Fri, 21 Nov 2025 12:21:26 +0000 Subject: [PATCH] Migrate to new frontpage lexicon --- README.md | 2 +- extension/background.js | 6 +++--- extension/options.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 3164d9a..f05d1df 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ ## frontpage.fyi Firefox extension This repository provides a Firefox WebExtension that lets you share the current tab to [frontpage.fyi](https://frontpage.fyi) with minimal effort. -Links are submitted by creating `fyi.unravel.frontpage.post` records on your ATProto account, the same mechanism the official Frontpage site uses. +Links are submitted by creating `fyi.frontpage.feed.post` records on your ATProto account, the same mechanism the official Frontpage site uses. > ℹ️ This repository is hosted on [tangled](https://tangled.org/@galiglobal.com/frontpage_firefox_plugin) (PRs, issues) and [GitHub](https://github.com/antonmry/frontpage_firefox_plugin) (CI/CD, releases). diff --git a/extension/background.js b/extension/background.js index a2a1446..79b0363 100644 --- a/extension/background.js +++ b/extension/background.js @@ -1,7 +1,7 @@ const browser = globalThis.browser ?? globalThis.chrome; const STORAGE_KEY = "frontpageAuth"; -const FRONTPAGE_COLLECTION = "fyi.unravel.frontpage.post"; -const RECORD_TYPE = "fyi.unravel.frontpage.post"; +const FRONTPAGE_COLLECTION = "fyi.frontpage.feed.post"; +const RECORD_TYPE = "fyi.frontpage.feed.post"; const DEFAULT_MAX_TITLE = 120; const DEFAULT_MAX_URL = 2048; @@ -132,7 +132,7 @@ async function createFrontpageRecord({ title, url }, authOverride) { record: { $type: RECORD_TYPE, title: trimmedTitle, - url: trimmedUrl, + subject: { url: trimmedUrl }, createdAt: new Date().toISOString() } }; diff --git a/extension/options.html b/extension/options.html index 6dba592..d6a0580 100644 --- a/extension/options.html +++ b/extension/options.html @@ -42,7 +42,7 @@

How it works

-- 2.43.0