diff --git a/CHANGELOG.md b/CHANGELOG.md index 40fb20909..8fab39cd4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,7 +23,11 @@ - Update ApiV1Controller, fix update_credentials boolean handling ([19c62aaa](https://github.com/pixelfed/pixelfed/commit/19c62aaa)) - Update ApiV1Controller, fix cache invalidation bug in update_credentials ([d56a4108](https://github.com/pixelfed/pixelfed/commit/d56a4108)) - Update ApiV1Controller, fix self relationship response ([28bc7aa4](https://github.com/pixelfed/pixelfed/commit/28bc7aa4)) -- ([](https://github.com/pixelfed/pixelfed/commit/)) +- Update ApiController, add pe support to like/unlike endpoints ([679ef677](https://github.com/pixelfed/pixelfed/commit/679ef677)) +- Update ApiV1Dot1Controller, fix username to id endpoint ([4d6cea9a](https://github.com/pixelfed/pixelfed/commit/4d6cea9a)) +- Update StatusController, cache AP object ([a75b89b2](https://github.com/pixelfed/pixelfed/commit/a75b89b2)) +- Update status embed, add support for album carousels ([f4898db9](https://github.com/pixelfed/pixelfed/commit/f4898db9)) +- Update profile embeds, add support for albums ([4fd156c4](https://github.com/pixelfed/pixelfed/commit/4fd156c4)) - ([](https://github.com/pixelfed/pixelfed/commit/)) - ([](https://github.com/pixelfed/pixelfed/commit/)) diff --git a/resources/views/profile/embed.blade.php b/resources/views/profile/embed.blade.php index 98b8b2692..d0edb9f59 100644 --- a/resources/views/profile/embed.blade.php +++ b/resources/views/profile/embed.blade.php @@ -15,7 +15,7 @@ - +
@@ -76,11 +76,13 @@ .then(res => res.json()) .then(res => { let parent = document.querySelector('.embed-row'); - res.filter(post => post.pf_type == 'photo' && !post.sensitive && post.visibility === 'public') + res.filter(post => ['photo', 'photo:album'].includes(post.pf_type) && !post.sensitive && post.visibility === 'public') .slice(0, 9) .forEach((post, idx) => { let mediaUrl = post.media_attachments[0].preview_url ? post.media_attachments[0].preview_url : post.media_attachments[0].url; - let html = `
`; + let html = post.pf_type === 'photo:album' ? + `
` : + `
`; let el = document.createElement('div'); el.innerHTML = html; parent.appendChild(el.firstChild); diff --git a/resources/views/status/embed.blade.php b/resources/views/status/embed.blade.php index 02ab2de90..7446ee528 100644 --- a/resources/views/status/embed.blade.php +++ b/resources/views/status/embed.blade.php @@ -15,7 +15,8 @@ - +
@@ -26,11 +27,19 @@ {{$status['account']['username']}}
+ @if($status['pf_type'] === 'photo')
+ @elseif($status['pf_type'] === 'photo:album') + + @foreach($status['media_attachments'] as $media) + + @endforeach + + @endif @if($layout != 'compact')
@@ -64,9 +73,10 @@
-