diff --git a/CHANGELOG.md b/CHANGELOG.md index 78f7f77654..893d0f802e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,7 +28,6 @@ HumHub Changelog - Enh #7167: Disable DEBUG mode automatically after successful humhub installation. Add `.env` support - Enh #7202: Increased minimum PHP version to 8.1 - Enh #7208: Improvements in dotenv parsing -- Enh #7211: Remove obsolete property `AbstractRichText::$record` - Enh #7213: By default, enabled "Mobile" notification types for those enabled for "Web" - Fix #7215: Wording: replace British "licence" with American "license" - Fix #6987: Added LatAm Spanish diff --git a/protected/humhub/modules/comment/widgets/views/comment.php b/protected/humhub/modules/comment/widgets/views/comment.php index a40c1634ec..5e7cfad109 100644 --- a/protected/humhub/modules/comment/widgets/views/comment.php +++ b/protected/humhub/modules/comment/widgets/views/comment.php @@ -50,7 +50,7 @@ $module = Yii::$app->getModule('comment');
- message) ?> + message, ['record' => $comment]) ?>
$comment]); ?>
diff --git a/protected/humhub/modules/content/widgets/richtext/AbstractRichText.php b/protected/humhub/modules/content/widgets/richtext/AbstractRichText.php index 7724542634..4a098ab0ac 100644 --- a/protected/humhub/modules/content/widgets/richtext/AbstractRichText.php +++ b/protected/humhub/modules/content/widgets/richtext/AbstractRichText.php @@ -144,6 +144,14 @@ abstract class AbstractRichText extends JsWidget */ protected static $converterClass; + /** + * @var mixed can be used to identify the related record + * Note: This property is used by external modules: + * - Legal Tools: https://github.com/humhub/legal/blob/master/Events.php#L263 + * - Link Preview: https://github.com/humhub/linkpreview/blob/master/widgets/Viewer.php#L44 + */ + public $record; + /** * @var array of richtext extension classes used for preparing and post processing output and converter result * @since 1.8 diff --git a/protected/humhub/modules/post/widgets/views/wallEntry.php b/protected/humhub/modules/post/widgets/views/wallEntry.php index 420696498c..fee32eb24c 100644 --- a/protected/humhub/modules/post/widgets/views/wallEntry.php +++ b/protected/humhub/modules/post/widgets/views/wallEntry.php @@ -23,6 +23,6 @@ $isDetailView = $renderOptions->isViewContext(WallStreamEntryOptions::VIEW_CONTE data-collapse-at="" > - message) ?> + message, ['record' => $post]) ?>