Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/notificationImage.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('getNotificationImageUrl', () => {
expect(url).toBe(`proxy(96x96):${IMG}`);
});

it.each(['mention', 'reblog', 'scheduled_published', 'favorites'])(
it.each(['mention', 'reblog', 'scheduled_published', 'favorites', 'payouts'])(
'uses img_url for a %s',
(type) => {
expect(getNotificationImageUrl({ type, img_url: IMG })).toBe(`proxy(96x96):${IMG}`);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/notificationImage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const THUMB_SIZE = 96;
// Vote notifications also carry img_url, but they are by far the highest-volume
// type and every thumbnail would be a repeat of the user's own post, so they are
// deliberately left text-only.
const IMAGE_TYPES = ['mention', 'reblog', 'scheduled_published', 'favorites'];
const IMAGE_TYPES = ['mention', 'reblog', 'scheduled_published', 'favorites', 'payouts'];

// Types whose image hangs off the PARENT post, because the notification itself is
// about a comment: your post that was replied to, or the post you bookmarked that
Expand Down
Loading