Fixed edit display threshold.
This commit is contained in:
parent
69e4d05be6
commit
5c67d49225
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ class ForumPostInfo {
|
||||||
if(self::$markAsEditedThreshold === null)
|
if(self::$markAsEditedThreshold === null)
|
||||||
self::$markAsEditedThreshold = DateTime::now()->modify('-5 minutes');
|
self::$markAsEditedThreshold = DateTime::now()->modify('-5 minutes');
|
||||||
|
|
||||||
return $this->getCreatedAt()->isMoreThanOrEqual(self::$markAsEditedThreshold);
|
return $this->getCreatedAt()->isLessThan(self::$markAsEditedThreshold);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isEdited(): bool {
|
public function isEdited(): bool {
|
||||||
|
|
Loading…
Reference in a new issue