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

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.

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now