Skip to content

Commit

Permalink
Updated the getPosts function to allow search and child contexts post…
Browse files Browse the repository at this point in the history
…s retrieval
  • Loading branch information
baptistegreve committed Mar 23, 2023
1 parent 1fd86f5 commit 889b432
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1356,12 +1356,14 @@ export class Orbis {
}

else {
query = this.api.rpc("default_posts_alpha", {
query = this.api.rpc("default_posts_03", {
q_did: options?.did ? options.did : null,
q_tag: options?.tag ? options.tag : null,
q_only_master: options?.only_master ? options.only_master : false,
q_context: options?.context ? options.context : null,
q_master: options?.master ? options.master : null
q_master: options?.master ? options.master : null,
q_include_child_contexts: options?.include_child_contexts ? options.include_child_contexts : false,
q_term: options?.term ? options.term : null
}).range(page * limit, (page + 1) * limit - 1).order('timestamp', { ascending: false });
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@orbisclub/orbis-sdk",
"version": "0.4.32",
"version": "0.4.35",
"description": "Official package to implement quickly an Orbis powered decentralized social layer within your application.",
"author": "Baptiste Grève",
"license": "ISC",
Expand Down

0 comments on commit 889b432

Please sign in to comment.