Skip to content

Commit f86d23b

Browse files
Added WebP image attachment support to the feed in ActivityPub (#23130)
ref PROD-1567 - extended note attachment renderer to display WebP format images in addition to existing JPG, PNG, and GIF formats - users can now view WebP images in notes, providing better visual quality with smaller file sizes
1 parent 2efdfef commit f86d23b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

apps/admin-x-activitypub/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tryghost/admin-x-activitypub",
3-
"version": "0.7.3",
3+
"version": "0.7.4",
44
"license": "MIT",
55
"repository": {
66
"type": "git",

apps/admin-x-activitypub/src/components/feed/FeedItem.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export function renderFeedAttachment(
8686
case 'image/jpeg':
8787
case 'image/png':
8888
case 'image/gif':
89+
case 'image/webp':
8990
return <img alt={attachment.name || 'Image'} className={`cursor-pointer ${object.type === 'Article' ? 'w-full rounded-t-md' : 'mt-3 max-h-[420px] rounded-md outline outline-1 -outline-offset-1 outline-black/10'}`} src={attachment.url} onClick={onImageClick ? handleImageClick(attachment.url) : undefined} />;
9091
case 'video/mp4':
9192
case 'video/webm':

0 commit comments

Comments
 (0)