Ghost/ghost/webmentions
Fabien "egg" O'Carroll 3a0e0831ec Updated Mention entity validation of properties
Based on a discussion in slack we want to make all metadata properties optional,
with the exception of the title, which will default to the host of the source
URL if it's missing.

This is so that we can accept as many webmentions as possible and convert them
into Mentions. If we were to have strictly validation, we'd end up having to
drop webmentions that didn't match our criteria, and lose important data.

Giving the title a default allows us to provide a consistent UI experience too.
2023-01-19 19:24:07 +07:00
..
lib Updated Mention entity validation of properties 2023-01-19 19:24:07 +07:00
test Updated Mention entity validation of properties 2023-01-19 19:24:07 +07:00
.eslintrc.js
index.js
package.json
README.md

Webmentions

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests