mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Disable "Like" on archived content (#7262)
* Disable "Like" on archived content * Disable "Like" on archived content
This commit is contained in:
parent
8252b2a3e2
commit
643b8eca78
@ -52,6 +52,7 @@ HumHub Changelog
|
||||
- Enh #7253: CSV/XLSX export improvements
|
||||
- Enh #7252: Show "Powered by HumHub" even if no entries in the Footer menu
|
||||
- Enh #7257: Move "About" into Space Control Menu
|
||||
- Enh #7262: Disable `Like` on archived content
|
||||
|
||||
1.16.3 (Unreleased)
|
||||
--------------------------
|
||||
|
@ -8,10 +8,9 @@
|
||||
|
||||
namespace humhub\modules\like;
|
||||
|
||||
use Yii;
|
||||
use humhub\modules\like\models\Like;
|
||||
use humhub\modules\space\models\Space;
|
||||
use humhub\modules\content\components\ContentActiveRecord;
|
||||
use humhub\modules\like\models\Like;
|
||||
use Yii;
|
||||
|
||||
/**
|
||||
* This module provides like support for Content and Content Addons
|
||||
@ -96,6 +95,10 @@ class Module extends \humhub\components\Module
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($content->isArchived()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user