mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
manually set position
This commit is contained in:
@@ -72,6 +72,7 @@ public class FeedSubscriptionService {
|
||||
newSubscription = true;
|
||||
}
|
||||
sub.setCategory(category);
|
||||
sub.setPosition(0);
|
||||
sub.setTitle(FeedUtils.truncate(title, 128));
|
||||
feedSubscriptionDAO.saveOrUpdate(sub);
|
||||
|
||||
|
||||
@@ -201,6 +201,7 @@ public class CategoryREST extends AbstractResourceREST {
|
||||
FeedCategory cat = new FeedCategory();
|
||||
cat.setName(req.getName());
|
||||
cat.setUser(getUser());
|
||||
cat.setPosition(0);
|
||||
String parentId = req.getParentId();
|
||||
if (parentId != null && !ALL.equals(parentId)) {
|
||||
FeedCategory parent = new FeedCategory();
|
||||
|
||||
Reference in New Issue
Block a user