Scheduled video shows in video feed with wrong timestamp
Summary
Scheduled videos seem to be showing on profile feed when filtered by type: video, with timestamps of upload time, not scheduled publish time.
Seems to be happening only to own profile (when I checked through alt, I didn't see it)
Steps to reproduce
- Schedule a video post
- Go to your profile
- Filter type: video
- You should see the videos in queue with upload time looking like published time
Platform information
Windows 10, Brave browser
What is the current bug behavior?
Scheduled videos shown in video feed, with timestamp of upload time.
What is the expected correct behavior?
The problem in my opinion isn't that the videos show, but that the timestamp shows upload time.
It was confusing to me, I thought the videos were published (they are not, I checked through alt).
I would suggest having the same timestamp as in the scheduled posts?
Relevant logs and/or screenshots
Image 1
Shown how the grid looks like
Image 2
This is a post with wrong timestamp (Taken from video feed)
Code for timestamp:
<div _ngcontent-m-app-c328="" class="m-activityOwnerBlockPermalink__text ng-star-inserted"><i _ngcontent-m-app-c328="" class="material-icons">schedule</i><span _ngcontent-m-app-c328=""> 2/15/2021, 4:00:00 PM </span></div>
Image 3
Same post with what seems like correct timestamp (taken from schedule queue)
Code for timestamp:
<span _ngcontent-m-app-c328="" class="m-activityOwnerBlockPermalink__text--timestamp ng-star-inserted" title="Jan 17, 2021, 2:39:19 PM"> 1w ago </span>
Possible fixes
Part 1
In this html document: https://gitlab.com/minds/front/-/blob/master/src/app/modules/newsfeed/activity/owner-block/owner-block.component.html
Line 52: <div *ngIf="isScheduled()" class="m-activityOwnerBlockPermalink__text">
I guess the isScheduled() returns false for when the post is in video queue?
Part 2
From line 94: typescript isScheduled(): boolean { return ( this.entity.time_created && this.entity.time_created * 1000 > Date.now() ); }
I would therefore assume that the time created is somehow wrong?
Part 3
I've found a time_published?: number;
(line 30) in following document:
https://gitlab.com/minds/front/-/blob/master/src/app/interfaces/entities.ts
Could that be what needs to be compared? I don't think that I will be able to go deeper, my knowledge of ts and js is limited, I hope this helps though.