FIX: fix content observer - ignore viewed

This commit is contained in:
Michal Kváček
2016-11-23 00:49:55 +01:00
parent 785387b796
commit 2fffea39fa
+3
View File
@@ -42,6 +42,9 @@ class Content
$normalFieldsEdited = 0; $normalFieldsEdited = 0;
foreach ($fields as $field => $change) { foreach ($fields as $field => $change) {
if ($field == 'viewed')
continue;
$history = [ $history = [
'user_id' => \Auth::user()->id, 'user_id' => \Auth::user()->id,
'content_id' => $content->id, 'content_id' => $content->id,