Skip to content

Commit

Permalink
Merge tag '1.2.3'
Browse files Browse the repository at this point in the history
Fedify 1.2.3
  • Loading branch information
dahlia committed Nov 6, 2024
2 parents cfe509f + d139bcf commit 599b5a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ To be released.
[#162]: https://github.com/dahlia/fedify/issues/162


Version 1.2.3
-------------

Released on November 6, 2024.

- The `fedify node` subcommand now can recognize multiple values of
the `rel` attribute in the `<link>` HTML elements.


Version 1.2.2
-------------

Expand Down
3 changes: 2 additions & 1 deletion cli/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ async function getFaviconUrl(
? value.slice(1, -1)
: value;
}
if (attrs.rel !== "icon" && attrs.rel !== "apple-touch-icon") continue;
const rel = attrs.rel?.toLowerCase()?.trim()?.split(/\s+/) ?? [];
if (!rel.includes("icon") && !rel.includes("apple-touch-icon")) continue;
if ("sizes" in attrs && attrs.sizes.match(/\d+x\d+/)) {
const [w, h] = attrs.sizes.split("x").map((v) => Number.parseInt(v));
if (w < 38 || h < 19) continue;
Expand Down

0 comments on commit 599b5a7

Please sign in to comment.