Use new fyi.frontpage lexicon #1

Changed files
+5 -5
extension
+1 -1
README.md
···
## 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).
+3 -3
extension/background.js
···
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;
···
record: {
$type: RECORD_TYPE,
title: trimmedTitle,
-
url: trimmedUrl,
+
subject: { url: trimmedUrl },
createdAt: new Date().toISOString()
}
};
+1 -1
extension/options.html
···
<h2>How it works</h2>
<ul class="tips">
<li>The add-on stores your tokens locally using Firefox storage.</li>
-
<li>Links are published as <code>fyi.unravel.frontpage.post</code> records on your ATProto account.</li>
+
<li>Links are published as <code>fyi.frontpage.feed.post</code> records on your ATProto account.</li>
<li>Your PDS is discovered from your handle automatically unless you provide a custom URL.</li>
</ul>
</section>