mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Use the channel avatar as icon & image in channel RSS feeds
This commit is contained in:
parent
0099b5092e
commit
a9ab1ca895
1 changed files with 6 additions and 0 deletions
|
@ -302,6 +302,12 @@ public class FeedHandlers {
|
||||||
|
|
||||||
if (filtered.size() == 1) {
|
if (filtered.size() == 1) {
|
||||||
feed.setTitle(channel.getUploader());
|
feed.setTitle(channel.getUploader());
|
||||||
|
SyndImage channelIcon = new SyndImageImpl();
|
||||||
|
channelIcon.setLink(Constants.FRONTEND_URL + "/channel/" + channel.getUploaderId());
|
||||||
|
channelIcon.setTitle(channel.getUploader());
|
||||||
|
channelIcon.setUrl(channel.getUploaderAvatar());
|
||||||
|
feed.setIcon(channelIcon);
|
||||||
|
feed.setImage(channelIcon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue