Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions littleX_BE/littleX.impl.jac
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ impl Tweet.remove_like {
impl Tweet.comment {
current_profile = [root-->(`?Profile)];
comment_node = current_profile[0] +>:Post():+> Comment(content=visitor.content);
_.perm_grant(comment_node[0], level="CONNECT");
self ++> comment_node[0];
report comment_node[0];
}
Expand Down Expand Up @@ -89,7 +88,6 @@ impl Comment.delete {
impl visit_profile.visit_profile {
visit [-->(`?Profile)] else {
new_profile = here ++> Profile();
_.perm_grant(new_profile[0], level="CONNECT");
visit new_profile;
}
}
Expand All @@ -112,7 +110,6 @@ impl load_user_profiles.report_profiles {
impl create_tweet.tweet {
embedding = vectorizer.fit_transform([self.content]).toarray().tolist();
tweet_node = here +>:Post():+> Tweet(content=self.content, embedding=embedding);
_.perm_grant(tweet_node[0], level="CONNECT");
report tweet_node;
}

Expand Down
12 changes: 12 additions & 0 deletions littleX_BE/littleX.jac
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ node Profile {
can follow with follow_request entry;

can un_follow with un_follow_request entry;

def __jac_access__ {
return "CONNECT";
}
}

obj TweetInfo {
Expand Down Expand Up @@ -47,6 +51,10 @@ node Tweet {
def get_info()-> TweetInfo;

can get with load_feed entry;

def __jac_access__ {
return "CONNECT";
}
}

node Comment {
Expand All @@ -55,6 +63,10 @@ node Comment {
can update with update_comment entry;

can delete with remove_comment entry;

def __jac_access__ {
return "CONNECT";
}
}

edge Follow {}
Expand Down