Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Board with Rule #286

Open
jtjun opened this issue Mar 22, 2021 · 1 comment
Open

Board with Rule #286

jtjun opened this issue Mar 22, 2021 · 1 comment
Labels
feat New feature or request

Comments

@jtjun
Copy link
Member

jtjun commented Mar 22, 2021

Popular

Favorite

Written

Liked

Bookmarked

@jtjun jtjun added the feat New feature or request label Mar 22, 2021
@jtjun jtjun added this to the Connect Node and View milestone Mar 22, 2021
@jtjun
Copy link
Member Author

jtjun commented Mar 31, 2021

lib/core/node/deck/boardk.dart

Future<List<Post>> getPopularPosts() async {
  List<String> boardIds = Session.currentUniv.deck.getChildren(Board()).map((board) => board.id).toList();
  return await PadongFB.getDocsByRule('post',
    rule: (query) => query
      .where('parentId', isIn: boardIds)
      .orderBy(number of Likes)
  ).then(
    ...
  );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feat New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant