Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Harlan T Wood committed Jul 1, 2023
1 parent 4bc84b7 commit fbaf77e
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 36 deletions.
33 changes: 9 additions & 24 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dnas/mewsfeed/zomes/coordinator/follows/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,7 @@ serde = { workspace = true }
follows_integrity = { workspace = true }
hc_link_pagination = { workspace = true }
follows_types = { workspace = true }
mews_types = { workspace = true }
hc_call_utils = { workspace = true }
trust_atom_types = {git = "https://github.com/trustgraph/trustgraph-holochain.git", package = "trust_atom_types"}
# trust_atom_types = { path= "/Users/knight/code/trustgraph/trustgraph-holochain/zomes/trust_atom_types"}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use follows_integrity::*;
use follows_types::*;
use hc_call_utils::call_local_zome;
use hc_link_pagination::paginate_by_agentpubkey;
use hdk::prelude::*;
use mews_types::FOLLOW_TOPIC;
use trust_atom_types::{QueryInput, TrustAtom, TrustAtomInput};
Expand Down
6 changes: 2 additions & 4 deletions dnas/mewsfeed/zomes/coordinator/mews/src/all_mews.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
use crate::hashtag_to_mews::*;
use hc_call_utils::call_local_zome;
// use crate::mew::get_mew_with_context;
use crate::mew_with_context::get_batch_mews_with_context;
use hc_call_utils::call_local_zome;
use hdk::prelude::*;
use mews_integrity::*;
use mews_types::FOLLOW_TOPIC;
use trust_atom_types::{QueryMineInput, TrustAtom};

#[hdk_extern]
Expand Down Expand Up @@ -39,7 +37,7 @@ pub fn get_trusted_mews_with_context(input: RecommendedInput) -> ExternResult<Ve
target: None,
content_full: None,
content_starts_with: None,
content_not_starts_with: Some(String::from("__")),
// content_not_starts_with: Some(String::from("__")), // TODO use this or manually filter
value_starts_with: None,
},
)?;
Expand Down
8 changes: 4 additions & 4 deletions dnas/mewsfeed/zomes/coordinator/mews/src/hashtag_to_mews.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use crate::mew_with_context::get_mew_with_context;
use crate::tag_to_mews::*;
use hc_link_pagination::HashPagination;
use crate::{mew_with_context::get_mew_with_context, tag_to_mews::*};
use hdk::prelude::*;
use mews_integrity::*;

Expand All @@ -24,7 +24,7 @@ pub fn add_hashtag_for_mew(input: AddHashtagForMewInput) -> ExternResult<()> {
LinkTypes::HashtagToMews,
LinkTag(input.base_hashtag.as_bytes().to_vec()),
)?;
\

add_hashtag_by_author_for_mew(input)?;

Ok(())
Expand Down Expand Up @@ -88,9 +88,9 @@ pub fn get_mews_for_hashtag_with_context(
// OLD: get_mews_for_tag_with_context(input.hashtag, LinkTypes::HashtagToMews, input.page)

// Get links from hashtag to mew
let tag = make_hashtag_text(hashtag.clone());
let tag = make_hashtag_text(input.hashtag.clone());
let prefix_index = make_tag_prefix_index()?;
let result_path: Path = prefix_index.make_result_path(tag, Some(hashtag))?;
let result_path: Path = prefix_index.make_result_path(tag, Some(input.hashtag))?;

let links = get_links(
result_path.path_entry_hash()?,
Expand Down
4 changes: 2 additions & 2 deletions dnas/mewsfeed/zomes/coordinator/trust_atom/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ crate-type = ["cdylib", "rlib"]
name = "trust_atom_zome"

[dependencies]
# trust_atom = {git = "https://github.com/trustgraph/trustgraph-holochain.git", package = "trust_atom"}
trust_atom = { path= "/Users/knight/code/trustgraph/trustgraph-holochain/zomes/trust_atom"}
trust_atom = {git = "https://github.com/trustgraph/trustgraph-holochain.git", package = "trust_atom"}
# trust_atom = { path= "/Users/knight/code/trustgraph/trustgraph-holochain/zomes/trust_atom"}

hdk = { workspace = true }
serde = { workspace = true }
Expand Down

0 comments on commit fbaf77e

Please sign in to comment.