···115 if (contentTabs !== null) {
116 contentTabs.switchTab("dashtabs", 1);
117 scrollToObject(repostRecordURL);
118- // set current time to value of now.
119- document.getElementById("repostTime").value = convertTimeValueLocally(Date.now());
00120 return;
121 }
122 }
123- console.warn("could not find valid repost target");
124});
125126
···115 if (contentTabs !== null) {
116 contentTabs.switchTab("dashtabs", 1);
117 scrollToObject(repostRecordURL);
118+ // set current time to value of now + 1 hour
119+ const curDate = new Date();
120+ curDate.setHours(curDate.getHours() + 1);
121+ document.getElementById("repostTime").value = convertTimeValueLocally(curDate);
122 return;
123 }
124 }
125+ pushToast("cannot add reposts to this post", false);
126});
127128