Use 404 page for deleted content request (#5682)

This commit is contained in:
Yuriy Bakhtin 2022-05-04 18:03:55 +03:00 committed by GitHub
parent 709b35fed7
commit 60f841b0a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ HumHub Changelog
- Fix: #5652: Fix undefined UrlOembed provider pattern
- Fix #5660: Individual modules marked with "Official" label in Marketplace
- Fix #5657: Fix links of user counters in container headers
- Fix #5676: Use 404 page for deleted content request
1.11.1 (April 22, 2022)

View File

@ -90,7 +90,7 @@ class ContentAddonController extends Controller
$target = $modelClass::findOne(['id' => $pk]);
if ($target === null) {
throw new HttpException(500, 'Could not find underlying content or content addon record!');
throw new HttpException(404, 'Could not find underlying content or content addon record!');
}
if ($target instanceof ContentAddonActiveRecord) {