72d7580461
This is a pretty simple way for us to track which webmentions are sent by Ghost. Although it's easily spoofed, so are other approaches like using a header (e.g. User-Agent). If we find that this data is being spoofed we can look at different approach. Becuase our receiving implementation stores the payload of the Webmention, we'll be able to know inside Ghost which Mentions originated from another Ghost installation, which is useful for stats and gives us the possibility to display that information in the feed. Longer term we might want to consider storing this data in a separate column for Mentions, rather than the `payload` column - but that is outside the scope of this change. |
||
---|---|---|
.. | ||
lib | ||
test | ||
.eslintrc.js | ||
index.js | ||
package.json | ||
README.md |
Webmentions
Usage
Develop
This is a monorepo package.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Test
yarn lint
run just eslintyarn test
run lint and tests