]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Objects.php
Merge pull request #9648 from annando/issue-9633
[friendica.git] / src / Module / Objects.php
index 1658507d5075dde5b925111a1fc5922a23b63529..cbe2e53fe044efdee01dbba2adeea65909f1e9dd 100644 (file)
@@ -103,6 +103,10 @@ class Objects extends BaseModule
 
                if (empty($parameters['activity']) && ($item['gravity'] != GRAVITY_ACTIVITY)) {
                        $activity = ActivityPub\Transmitter::createActivityFromItem($item['id'], true);
+                       if (empty($activity['type'])) {
+                               throw new HTTPException\NotFoundException();
+                       }
+
                        $activity['type'] = $activity['type'] == 'Update' ? 'Create' : $activity['type'];
 
                        // Only display "Create" activity objects here, no reshares or anything else