core: parentApp hasn't been a thing in a long while.
This commit is contained in:
@@ -111,7 +111,6 @@ exports.app_socket = async function socket(request, response) {
|
|||||||
let packageName;
|
let packageName;
|
||||||
let blobId;
|
let blobId;
|
||||||
let match;
|
let match;
|
||||||
let parentApp;
|
|
||||||
if (
|
if (
|
||||||
(match = /^\/([&%][^\.]{44}(?:\.\w+)?)(\/?.*)/.exec(message.path))
|
(match = /^\/([&%][^\.]{44}(?:\.\w+)?)(\/?.*)/.exec(message.path))
|
||||||
) {
|
) {
|
||||||
@@ -132,13 +131,6 @@ exports.app_socket = async function socket(request, response) {
|
|||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (packageOwner != 'core') {
|
|
||||||
let coreId = await new Database('core').get('path:' + packageName);
|
|
||||||
parentApp = {
|
|
||||||
path: '/~core/' + packageName + '/',
|
|
||||||
id: coreId,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
response.send(
|
response.send(
|
||||||
JSON.stringify(
|
JSON.stringify(
|
||||||
@@ -146,7 +138,6 @@ exports.app_socket = async function socket(request, response) {
|
|||||||
{
|
{
|
||||||
action: 'session',
|
action: 'session',
|
||||||
credentials: credentials,
|
credentials: credentials,
|
||||||
parentApp: parentApp,
|
|
||||||
id: blobId,
|
id: blobId,
|
||||||
},
|
},
|
||||||
await ssb_internal.getIdentityInfo(
|
await ssb_internal.getIdentityInfo(
|
||||||
|
|||||||
@@ -256,10 +256,8 @@ static void _httpd_app_hello_work(tf_ssb_t* ssb, void* user_data)
|
|||||||
|
|
||||||
char blob_id[k_id_base64_len] = { 0 };
|
char blob_id[k_id_base64_len] = { 0 };
|
||||||
tf_httpd_user_app_t* user_app = tf_httpd_parse_user_app_from_path(work->path, NULL);
|
tf_httpd_user_app_t* user_app = tf_httpd_parse_user_app_from_path(work->path, NULL);
|
||||||
tf_printf("path = %s\n", work->path);
|
|
||||||
if (user_app)
|
if (user_app)
|
||||||
{
|
{
|
||||||
tf_printf("user = %s app = %s\n", user_app->user, user_app->app);
|
|
||||||
size_t length = strlen("path:") + strlen(user_app->app) + 1;
|
size_t length = strlen("path:") + strlen(user_app->app) + 1;
|
||||||
char* key = alloca(length);
|
char* key = alloca(length);
|
||||||
snprintf(key, length, "path:%s", user_app->app);
|
snprintf(key, length, "path:%s", user_app->app);
|
||||||
|
|||||||
Reference in New Issue
Block a user