Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[steemit.com] Posts on Feed shows undefined in place of vote count #185

Open
ng-gist opened this issue Dec 21, 2018 · 0 comments
Open

[steemit.com] Posts on Feed shows undefined in place of vote count #185

ng-gist opened this issue Dec 21, 2018 · 0 comments

Comments

@ng-gist
Copy link

ng-gist commented Dec 21, 2018

Expected behavior

On steemit.com platform, Posts on feed should show vote counts.

Actual behavior

On steemit.com platform, SteemPlus Feed shows undefined for vote count.

How to reproduce

  1. Install and enable latest SteemPlus extension.
  2. Go to steemit.com and click on Feed from Top (Next to Promoted.)
  3. Notice undefined next to up carrot

image

Technical Analysis

feedplus.js
line 167

list_posts.push(Posts(window.SteemPlus.Sanitize.postBodyShort(elt.body), elt.title, elt.hasOwnProperty("first_reblogged_by") ? elt.first_reblogged_by : '', elt.created, elt.pending_payout_value, 0, elt.net_votes, elt.author, JSON.parse(elt.json_metadata).hasOwnProperty("tags") ? JSON.parse(elt.json_metadata).tags : [elt.category], urlImage, elt.url, voted));

Change net_votes to active_votes.length

list_posts.push(Posts(window.SteemPlus.Sanitize.postBodyShort(elt.body), elt.title, elt.hasOwnProperty("first_reblogged_by") ? elt.first_reblogged_by : '', elt.created, elt.pending_payout_value, 0, elt.active_votes.length, elt.author, JSON.parse(elt.json_metadata).hasOwnProperty("tags") ? JSON.parse(elt.json_metadata).tags : [elt.category], urlImage, elt.url, voted));
  • Browser: Chrome Version 69.0.3497.100 (Official Build) (64-bit)
  • Operating system: OSX 10.11.6
  • SteemPlus Version: 3.5.4.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant