Global setting for the behaviour of likes.

This commit is contained in:
Michael Vogel 2015-02-23 12:44:50 +01:00
parent 6504568f2e
commit 440e2d82b1
2 changed files with 8 additions and 4 deletions

View file

@ -1435,7 +1435,7 @@ function item_store($arr,$force_parent = false, $notify = false, $dontcache = fa
// update the commented timestamp on the parent
// Only update "commented" if it is really a comment
if ($arr['verb'] == ACTIVITY_POST)
if (($arr['verb'] == ACTIVITY_POST) OR !get_config("system", "like_no_comment"))
q("UPDATE `item` SET `commented` = '%s', `changed` = '%s' WHERE `id` = %d",
dbesc(datetime_convert()),
dbesc(datetime_convert()),