Bug Finder: one bug in SportsTalk.social about the "edited" status of posts and comments

in #sportstalk2 years ago (edited)

Description

I found all the posts and comments are displayed as ("edited") though actually they're maybe not.

1. comments

The comments in the post https://www.sportstalksocial.com/sportstalk/@patrickulrich/introducing-sportstalk-social-and-sports, are all displayed with "edited".

Screen Shot 2019-06-25 at 4.27.19 PM.png

2. posts

And the posts are also displayed as (edited).

@patrickulrich 's post: https://www.sportstalksocial.com/sportstalk/@patrickulrich/introducing-sportstalk-social-and-sports

Screen Shot 2019-06-25 at 4.29.04 PM.png

my post: https://www.sportstalksocial.com/sportstalk/@koei/sportstalk-the-vision-fun-and-business-model-of-sportstalk-social-and-sports

Screen Shot 2019-06-25 at 4.29.16 PM.png

How to Contribute

For those who want to contribute to SportsTalk.social to fix the issue, you can find the source of the project on GitHub.

repository: https://github.com/steem-engine-exchange/nitrous/tree/scotty_sports

relevant code change:

  1. The "edited" text is displayed by ContentEditedWrapper from: https://github.com/steem-engine-exchange/nitrous/blame/8f508a3ecbe8b1d607d8d156e5bc59b615aab29b/src/app/components/elements/ContentEditedWrapper/index.jsx
  2. the issue here is because updateDate is always equal to the time when the page is open. comment.last_update is not correct: https://github.com/steem-engine-exchange/nitrous/blob/8f508a3ecbe8b1d607d8d156e5bc59b615aab29b/src/app/components/cards/Comment.jsx#L460

debug the React components:

  • You're find the update date is always the current time.

I may resume the investigation when I get time late today or tomorrow.

Sort:  

Congratulations @koei! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You received more than 100 upvotes. Your next target is to reach 250 upvotes.

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Do not miss the last post from @steemitboard:

The Steem community has lost an epic member! Farewell @woflhart!
SteemitBoard - Witness Update
Vote for @Steemitboard as a witness to get one more award and increased upvotes!

这个问题所有的scot平台都有。应该是scot api的问题

是的,应该是最近几天的merge引起的,steemcoinpan 上也有,之前是没有问题的

的确是这样,steemcoinpancn这个版本的没有,sctcn这个我昨天刚merge的有这个问题。

刚高价买了5个SPORTS来锁定才发现已经SPORTS已经被刷烂了

你在新手村的微信群吗?

微信号私信你了,拉我下吧 村长