From b31df5ad6ce088ae9ab512c8d90c782f2f202b43 Mon Sep 17 00:00:00 2001 From: maxgithubprofile <21055122+maxgithubprofile@users.noreply.github.com> Date: Mon, 2 Sep 2024 10:34:32 +0300 Subject: [PATCH] fix: 0209 small fix (#1280) * v * Update package.json --- components/authorn/index.js | 4 +++- js/satolist.js | 7 ++++--- package.json | 4 ++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/components/authorn/index.js b/components/authorn/index.js index d1cd8b553..4a6d00581 100644 --- a/components/authorn/index.js +++ b/components/authorn/index.js @@ -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, diff --git a/js/satolist.js b/js/satolist.js index e8b260945..6c31a8255 100644 --- a/js/satolist.js +++ b/js/satolist.js @@ -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) diff --git a/package.json b/package.json index 8603bb284..66141298e 100644 --- a/package.json +++ b/package.json @@ -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 <support@pocketnet.app>",