Skip to content

Commit 7578dd6

Browse files
committed
workin on stuff
1 parent 015c6ff commit 7578dd6

3 files changed

Lines changed: 24 additions & 4 deletions

File tree

notes.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Trender Entertainment
2+
====
3+
4+
* Games
5+
* Videos
6+
* Films & Tv shows
7+
* Livestream
8+
* Music & Shows
9+
* Sports
10+
11+
Notes
12+
====
13+
* collections
14+
* curation (AI & manual)
15+
* channels
16+
* recommendation
17+
* flexibility
18+
* posts group ?
19+

src/main/java/com/dk/trender/core/ZCollection.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ public class ZCollection {
7878
@Transient
7979
private Map<String, Object> data = new HashMap<>();
8080

81-
@JsonProperty
8281
public <T> T addObj(String key, T value) {
8382
this.data.put(key, value);
8483
return value;

src/main/java/com/dk/trender/service/ZChannelService.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
public class ZChannelService extends AbstractDAO<ZChannel> {
2828
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;
3030
private final ZSearchService search;
3131

3232
public ZChannelService(SessionFactory sessionFactory,
@@ -138,15 +138,17 @@ public Map<String, ZCollection> feed(ZChannel chan) {
138138
conf.setLimit(ROWS_PER_REQ);
139139
Map<String, List<ZPost>> types=search.groupByType(conf);
140140

141+
// native collections
141142
ZCollection newsfeed = nativeCol("t/newsfeed", "Newsfeed");
142143
ZCollection events = nativeCol("t/events", "Events");
143144
ZCollection videos = nativeCol("t/videos", "Videos");
144-
145145
ZCollection mostPopular = nativeCol("t/mpopular", "Most Popular");
146146
ZCollection trending = nativeCol("t/trending", "Trending");
147147
ZCollection sugest = nativeCol("t/csugestions", "Suggested Channels");
148148

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));
150152
videos.setPosts(types.get(ZPost.YOUTUBE));
151153

152154
// List for public collections

0 commit comments

Comments
 (0)