From ed7021d4f619f4333009b8553738ad8527813104 Mon Sep 17 00:00:00 2001 From: maxgithubprofile <21055122+maxgithubprofile@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:12:49 +0300 Subject: [PATCH] fix: add tags (#1321) * v * Update satolist.js * v * Update satolist.js * Update rpc.js --- components/socialshare2/index.js | 2 ++ js/lib/apps/index.js | 6 ++++++ js/satolist.js | 4 +++- proxy16/node/rpc.js | 12 ++++++++++-- 4 files changed, 21 insertions(+), 3 deletions(-) diff --git a/components/socialshare2/index.js b/components/socialshare2/index.js index 2893c468a..88d957184 100644 --- a/components/socialshare2/index.js +++ b/components/socialshare2/index.js @@ -779,6 +779,8 @@ var socialshare2 = (function(){ p.images = _.map(p.images, (im) => { return superXSS(im) }) + + p.tags = ed.sharing.tags || [] } if (ed.url){ diff --git a/js/lib/apps/index.js b/js/lib/apps/index.js index 474032da5..d615d02b4 100644 --- a/js/lib/apps/index.js +++ b/js/lib/apps/index.js @@ -539,6 +539,12 @@ var BastyonApps = function(app){ if (typeof data.canmakepost == 'undefined') data.canmakepost = true + if (data.sharing){ + data.sharing.tags || (data.sharing.tags = []) + data.sharing.tags.push(application.manifest.name) + } + + app.platform.ui.socialshare(null, data) return Promise.resolve() diff --git a/js/satolist.js b/js/satolist.js index 6eecc41d9..5cf3bf3ea 100644 --- a/js/satolist.js +++ b/js/satolist.js @@ -3921,7 +3921,9 @@ Platform = function (app, listofnodes) { }, - + usertype : function(){ + return self.sdk.user.type(address) + }, markUser : function(address){ var t = self.sdk.user.type(address) diff --git a/proxy16/node/rpc.js b/proxy16/node/rpc.js index 1f84ccbcb..745a868d1 100644 --- a/proxy16/node/rpc.js +++ b/proxy16/node/rpc.js @@ -159,7 +159,11 @@ const publics = { getjuryassigned: true, getjurymoderators: true, - getbans : true + getbans : true, + + getapps : true, + getappscores : true, + getappcomments : true } @@ -563,7 +567,11 @@ RpcClient.callspec = { getjuryassigned: 'str', getjurymoderators: 'str', - getbans: 'str' + getbans: 'str', + + getapps : 'obj str int int int str bool', + getappscores : 'str int int int str bool', + getappcomments : 'str int int int str bool'