use more records

This commit is contained in:
Athou
2025-10-02 21:53:23 +02:00
parent 62d025d827
commit 297c76006a
11 changed files with 23 additions and 50 deletions

View File

@@ -342,7 +342,7 @@ public class FeedREST {
Feed feed = subscription.getFeed();
Favicon icon = feedService.fetchFavicon(feed);
return Response.ok(icon.getIcon(), icon.getMediaType()).build();
return Response.ok(icon.icon(), icon.mediaType()).build();
}
@POST

View File

@@ -306,7 +306,7 @@ public class FeverREST {
FeverFavicon f = new FeverFavicon();
f.setId(s.getFeed().getId());
f.setData(String.format("data:%s;base64,%s", favicon.getMediaType(), Base64.getEncoder().encodeToString(favicon.getIcon())));
f.setData(String.format("data:%s;base64,%s", favicon.mediaType(), Base64.getEncoder().encodeToString(favicon.icon())));
return f;
}).toList();
}