diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php index 8aa3d8136..fa40aea03 100644 --- a/mod/item.php +++ b/mod/item.php @@ -860,6 +860,13 @@ function item_post(&$a) { 'otype' => 'item' )); } + + if($uid && $uid == $profile_uid && (! $datarray['item_restrict'])) { + q("update channel set channel_lastpost = '%s' where channel_id = %d", + dbesc(datetime_convert()), + intval($uid) + ); + } } // photo comments turn the corresponding item visible to the profile wall |