Skip to content

Commit

Permalink
fix: 0209 small fix (#1280)
Browse files Browse the repository at this point in the history
* v

* Update package.json
  • Loading branch information
maxgithubprofile authored Sep 2, 2024
1 parent 99fcbbc commit b31df5a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 3 additions & 1 deletion components/authorn/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1156,13 +1156,15 @@ var authorn = (function(){
var monetizationStatic = !self.user.isItMe(author.address) && !params.searchValue && !params.searchTags && !params.read && !params.audio && !params.video

if (monetizationStatic)
monetizationPromise = self.app.platform.sdk.users.checkMonetization(self.app.user.address.value)
monetizationPromise = self.app.platform.sdk.users.checkMonetization(author.address)


monetizationPromise.then((m) => {

params.includeboost = monetizationStatic && m



self.nav.api.load({

open : true,
Expand Down
7 changes: 4 additions & 3 deletions js/satolist.js
Original file line number Diff line number Diff line change
Expand Up @@ -10615,17 +10615,18 @@ Platform = function (app, listofnodes) {

var subcount = userinfo.subscribes_count || 0

return self.app.monetization && /*self.app.monetization.start <= moment.utc().unix() &&*/ self.app.boost && !self.app.pkoindisable && (self.real[address] || userinfo.dev)
return self.app.monetization && self.app.boost && !self.app.pkoindisable && (self.real[address] || userinfo.dev)
},

checkMonetization : function(address){


if (self.sdk.users.checkMonetizationOpportunity(address)){

return self.psdk.accSet.load(address).then(setting => {
return self.psdk.accSet.load(address).then(s => {

var settings = self.psdk.accSet.get(address) || {}

console.log("USERSETTINGS", settings)

return Promise.resolve(settings.monetization || false)

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

"version": "0.8.98",

"versionsuffix": "4",
"versionsuffix": "5",
"cordovaversion": "1.8.98",
"cordovaversioncode": "180984",
"cordovaversioncode": "180985",

"description": "Bastyon desktop application",
"author": "Pocketnet Community <[email protected]>",
Expand Down

0 comments on commit b31df5a

Please sign in to comment.