From dca0df8297b578c85676b1ff868a2182981bee25 Mon Sep 17 00:00:00 2001 From: Lars Hærvig Date: Wed, 31 Oct 2012 19:45:00 +0100 Subject: Limit messageboard posts to excerpts in activity stream --- .../default/river/object/messageboard/create.php | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'mod/messageboard/views') diff --git a/mod/messageboard/views/default/river/object/messageboard/create.php b/mod/messageboard/views/default/river/object/messageboard/create.php index 7ce7f6b4e..ac10a55c1 100644 --- a/mod/messageboard/views/default/river/object/messageboard/create.php +++ b/mod/messageboard/views/default/river/object/messageboard/create.php @@ -1,11 +1,12 @@ -getAnnotation(); - -echo elgg_view('river/elements/layout', array( - 'item' => $vars['item'], - 'message' => $messageboard->value, -)); +getAnnotation(); +$excerpt = elgg_get_excerpt($messageboard->value); + +echo elgg_view('river/elements/layout', array( + 'item' => $vars['item'], + 'message' => $excerpt, +)); -- cgit v1.2.3