]> BookStack Code Mirror - bookstack/blobdiff - resources/views/common/activity-item.blade.php
System CLI: Updated to 126de5599c state
[bookstack] / resources / views / common / activity-item.blade.php
index 89d44b15231a37037a4fe6475f6e4b8e3672cf15..1c970084f6a98785b54d9f13b2eebff2b5012248 100644 (file)
 
     {{ $activity->getText() }}
 
-    @if($activity->entity && is_null($activity->entity->deleted_at))
-        <a href="{{ $activity->entity->getUrl() }}">{{ $activity->entity->name }}</a>
+    @if($activity->loggable && is_null($activity->loggable->deleted_at))
+        <a href="{{ $activity->loggable->getUrl() }}">{{ $activity->loggable->name }}</a>
     @endif
 
-    @if($activity->entity && !is_null($activity->entity->deleted_at))
-        "{{ $activity->entity->name }}"
+    @if($activity->loggable && !is_null($activity->loggable->deleted_at))
+        "{{ $activity->loggable->name }}"
     @endif
 
     <br>