aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2022-03-23 21:08:54 +0100
committerMario Vavti <mario@mariovavti.com>2022-03-23 21:08:54 +0100
commit29a527426a24aecc85bb1ad2089d0544c8eae2ec (patch)
tree5b2100aa85263c03d01a36a7ad60c23e16e19b4e
parent62ac0ff21ecf8292e55722cdcdce08fa8bbdb87d (diff)
downloadvolse-hubzilla-29a527426a24aecc85bb1ad2089d0544c8eae2ec.tar.gz
volse-hubzilla-29a527426a24aecc85bb1ad2089d0544c8eae2ec.tar.bz2
volse-hubzilla-29a527426a24aecc85bb1ad2089d0544c8eae2ec.zip
make sure to set comments_closed to the created date if nocomment is set
-rw-r--r--Zotlabs/Module/Item.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index f2916212f..574a90c1a 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -1093,7 +1093,7 @@ class Item extends Controller {
$datarray['created'] = $created;
$datarray['edited'] = (($orig_post) ? datetime_convert() : $created);
$datarray['expires'] = $expires;
- $datarray['comments_closed'] = $comments_closed;
+ $datarray['comments_closed'] = (($nocomment) ? $created : $comments_closed);
$datarray['commented'] = (($orig_post) ? datetime_convert() : $created);
$datarray['received'] = (($orig_post) ? datetime_convert() : $created);
$datarray['changed'] = (($orig_post) ? datetime_convert() : $created);