Ready for first debug

This commit is contained in:
Luis Fernando Molina committed 2021-08-30 16:28:05 +02:00
1 parent 62726d8faa
commit a52e9aa0a9
11 files changed
+59 -17

No files matched your search

@@ -1,4 +1,4 @@
exports.newBotProfile = function newBotProfile() {
exports.newNetworkModulesSocialGraphBotProfile = function newNetworkModulesSocialGraphBotProfile() {
/*
Users can have a Profile that can:
* follow other bots profiles.
@@ -80,7 +80,7 @@ exports.newBotProfile = function newBotProfile() {
if (thisObject.posts.get(emitterPostHash) !== undefined) {
throw ('Post Already Exists.')
} else {
let post = NT.modules.POST.newPost()
let post = NT.modules.socialGraphPost.newNetworkModulesSocialGraphPost()
post.initialize(
emitterUserProfileId,
targetUserProfileId,
@@ -1,4 +1,4 @@
exports.newPost = function newPost() {
exports.newNetworkModulesSocialGraphPost = function newNetworkModulesSocialGraphPost() {
/*
Posts represent a collection of multimedia content sotored somewhere else
and identified by that content hash. Posts might belong to:
@@ -97,7 +97,7 @@ exports.newPost = function newPost() {
/*
Validate Target User Profile.
*/
let targetUserProfile = NT.globals.memory.USER_PROFILES_BY_ID.get(thisObject.targetUserProfileId)
let targetUserProfile = NT.globals.memory.maps.USER_PROFILES_BY_ID.get(thisObject.targetUserProfileId)
if (targetUserProfile === undefined) {
throw ('Target User Profile Not Found.')
}
@@ -1,4 +1,4 @@
exports.newUserProfile = function newUserProfile() {
exports.newNetworkModulesSocialGraphUserProfile = function newNetworkModulesSocialGraphUserProfile() {
/*
Users can have a Profile that can:
* follow other user profiles.
@@ -84,7 +84,7 @@ exports.newUserProfile = function newUserProfile() {
if (thisObject.posts.get(emitterPostHash) !== undefined) {
throw ('Post Already Exists.')
} else {
let post = NT.modules.POST.newPost()
let post = NT.modules.socialGraphPost.newNetworkModulesSocialGraphPost()
post.initialize(
emitterUserProfileId,
targetUserProfileId,