mirror of
https://github.com/Elysola/WebHooker.git
synced 2026-11-21 01:23:40 +00:00
fix(formatters): use raster PNG forge icons Discord renders
- GitHub footer icon now uses fluidicon.png instead of favicon.ico —
Discord silently drops .ico embed footer icons (png/jpg/webp/gif only)
- Gitea instances use {origin}/assets/img/favicon.png (verified on
codeberg.org and gitea.com); links are still derived from the repo URL
- tests + docs updated to the new icon URLs
This commit is contained in:
6 files changed
+25
-22
No files matched your search
@@ -91,12 +91,12 @@ describe("discord role mentions", () => {
|
||||
forge: {
|
||||
name: "GitHub",
|
||||
url: "https://github.com",
|
||||
iconUrl: "https://github.com/favicon.ico",
|
||||
iconUrl: "https://github.com/fluidicon.png",
|
||||
},
|
||||
});
|
||||
expect(out.embeds?.[0]?.footer).toEqual({
|
||||
text: "GitHub · acme/widget",
|
||||
icon_url: "https://github.com/favicon.ico",
|
||||
icon_url: "https://github.com/fluidicon.png",
|
||||
});
|
||||
});
|
||||
});
|
||||
@@ -451,7 +451,7 @@ describe("dispatchEvent fallback routing", () => {
|
||||
});
|
||||
expect(footers).toContainEqual({
|
||||
text: "内网 Gitea · owner/repo",
|
||||
icon_url: "https://git.example.com/favicon.ico",
|
||||
icon_url: "https://git.example.com/assets/img/favicon.png",
|
||||
});
|
||||
expect(footers).toContainEqual({ text: "owner/repo" });
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user