|
26 | 26 |
|
27 | 27 | public class ZChannelService extends AbstractDAO<ZChannel> { |
28 | 28 | private static final Logger log = LoggerFactory.getLogger(ZChannelService.class); |
29 | | - private static final int ROWS_PER_REQ = 7; |
| 29 | + private static final int ROWS_PER_REQ = 10; |
30 | 30 | private final ZSearchService search; |
31 | 31 |
|
32 | 32 | public ZChannelService(SessionFactory sessionFactory, |
@@ -138,15 +138,17 @@ public Map<String, ZCollection> feed(ZChannel chan) { |
138 | 138 | conf.setLimit(ROWS_PER_REQ); |
139 | 139 | Map<String, List<ZPost>> types=search.groupByType(conf); |
140 | 140 |
|
| 141 | + // native collections |
141 | 142 | ZCollection newsfeed = nativeCol("t/newsfeed", "Newsfeed"); |
142 | 143 | ZCollection events = nativeCol("t/events", "Events"); |
143 | 144 | ZCollection videos = nativeCol("t/videos", "Videos"); |
144 | | - |
145 | 145 | ZCollection mostPopular = nativeCol("t/mpopular", "Most Popular"); |
146 | 146 | ZCollection trending = nativeCol("t/trending", "Trending"); |
147 | 147 | ZCollection sugest = nativeCol("t/csugestions", "Suggested Channels"); |
148 | 148 |
|
149 | | - newsfeed.setPosts(types.get(ZPost.STEEMIT)); |
| 149 | + newsfeed.getPosts().addAll(types.get(ZPost.STEEMIT)); |
| 150 | + newsfeed.getPosts().addAll(types.get(ZPost.TWITTER)); |
| 151 | + newsfeed.getPosts().addAll(types.get(ZPost.BBC)); |
150 | 152 | videos.setPosts(types.get(ZPost.YOUTUBE)); |
151 | 153 |
|
152 | 154 | // List for public collections |
|
0 commit comments