Skip to content

Commit

Permalink
fix: add tags (#1321)
Browse files Browse the repository at this point in the history
* v

* Update satolist.js

* v

* Update satolist.js

* Update rpc.js
  • Loading branch information
maxgithubprofile authored Nov 19, 2024
1 parent f671e05 commit ed7021d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 2 additions & 0 deletions components/socialshare2/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,8 @@ var socialshare2 = (function(){
p.images = _.map(p.images, (im) => {
return superXSS(im)
})

p.tags = ed.sharing.tags || []
}

if (ed.url){
Expand Down
6 changes: 6 additions & 0 deletions js/lib/apps/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 3 additions & 1 deletion js/satolist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
12 changes: 10 additions & 2 deletions proxy16/node/rpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,11 @@ const publics = {
getjuryassigned: true,
getjurymoderators: true,

getbans : true
getbans : true,

getapps : true,
getappscores : true,
getappcomments : true

}

Expand Down Expand Up @@ -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'



Expand Down

0 comments on commit ed7021d

Please sign in to comment.