Fixed edit display threshold.

This commit is contained in:
flash 2023-09-06 11:32:13 +00:00
parent 69e4d05be6
commit 5c67d49225

View file

@ -98,7 +98,7 @@ class ForumPostInfo {
if(self::$markAsEditedThreshold === null)
self::$markAsEditedThreshold = DateTime::now()->modify('-5 minutes');
return $this->getCreatedAt()->isMoreThanOrEqual(self::$markAsEditedThreshold);
return $this->getCreatedAt()->isLessThan(self::$markAsEditedThreshold);
}
public function isEdited(): bool {