mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
choose bookmarklet reading order
This commit is contained in:
@@ -38,10 +38,11 @@ public class NextUnreadRedirectPage extends WebPage {
|
||||
public NextUnreadRedirectPage(PageParameters params) {
|
||||
String categoryId = params.get(PARAM_CATEGORYID).toString();
|
||||
String orderParam = params.get(PARAM_READINGORDER).toString();
|
||||
|
||||
User user = CommaFeedSession.get().getUser();
|
||||
ReadingOrder order = ReadingOrder.desc;
|
||||
|
||||
if (!StringUtils.isBlank(orderParam) && orderParam.equals("asc")) {
|
||||
if (StringUtils.equals(orderParam, "asc")) {
|
||||
order = ReadingOrder.asc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user