mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
parent
ce5881bad1
commit
b28356d0ed
2 changed files with 4 additions and 2 deletions
|
@ -238,7 +238,7 @@ public class ResponseHelper {
|
|||
}
|
||||
|
||||
final Channel channel = new Channel(info.getId(), info.getName(), rewriteURL(info.getAvatarUrl()),
|
||||
rewriteURL(info.getBannerUrl()), info.getDescription(), nextpage, relatedStreams);
|
||||
rewriteURL(info.getBannerUrl()), info.getDescription(), nextpage, info.getSubscriberCount(), relatedStreams);
|
||||
|
||||
IPFS.publishData(channel);
|
||||
|
||||
|
|
|
@ -5,16 +5,18 @@ import java.util.List;
|
|||
public class Channel {
|
||||
|
||||
public String id, name, avatarUrl, bannerUrl, description, nextpage;
|
||||
public long subscriberCount;
|
||||
public List<StreamItem> relatedStreams;
|
||||
|
||||
public Channel(String id, String name, String avatarUrl, String bannerUrl, String description, String nextpage,
|
||||
List<StreamItem> relatedStreams) {
|
||||
long subscriberCount, List<StreamItem> relatedStreams) {
|
||||
this.id = id;
|
||||
this.name = name;
|
||||
this.avatarUrl = avatarUrl;
|
||||
this.bannerUrl = bannerUrl;
|
||||
this.description = description;
|
||||
this.nextpage = nextpage;
|
||||
this.subscriberCount = subscriberCount;
|
||||
this.relatedStreams = relatedStreams;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue