mirror of
https://github.com/Athou/commafeed.git
synced 2026-10-25 22:48:31 +00:00
use more records
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user