Skip to content

Commit

Permalink
Remove title fallback to og:title.
Browse files Browse the repository at this point in the history
  • Loading branch information
brahma-dev committed Aug 3, 2022
1 parent 227e26e commit 4896f00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -69,7 +69,7 @@ Use NPM to install:

### Response Data

* `title` : Page title or `og:title` meta tag.
* `title` : Page title.
* `description` : Page description or `og:description` meta tag.
* `image` : `og:image` meta tag.
* `url` : Page url or `og:url` meta tag.
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "metafetch",
"description": "Metafetch fetches a given URL's title, description, images, links etc.",
"version": "3.0.2",
"version": "3.0.3",
"homepage": "https://github.com/brahma-dev/metafetch",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/parser.ts
Expand Up @@ -121,7 +121,7 @@ export default function (url: string, options: any, body: string, headers: Axios
// response.uri = uri;

if (options.title) {
response.title = metaData['og:title'] || title;
response.title = title;
}
if (options.description) {
response.description = metaData['og:description'] || metaData.description;
Expand Down

0 comments on commit 4896f00

Please sign in to comment.