diff options
author | Lars Hærvig <lars@laptus.dk> | 2012-10-31 19:45:00 +0100 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-11-15 01:36:22 -0500 |
commit | dca0df8297b578c85676b1ff868a2182981bee25 (patch) | |
tree | 52cdca271317a1d2d3f85877e7286a37557b103d /mod/messageboard/views/default/river | |
parent | 518bdcf74942720b34d7466013ff84a18b92b588 (diff) | |
download | elgg-dca0df8297b578c85676b1ff868a2182981bee25.tar.gz elgg-dca0df8297b578c85676b1ff868a2182981bee25.tar.bz2 |
Limit messageboard posts to excerpts in activity stream
Diffstat (limited to 'mod/messageboard/views/default/river')
-rw-r--r-- | mod/messageboard/views/default/river/object/messageboard/create.php | 23 |
1 files changed, 12 insertions, 11 deletions
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 @@ -<?php -/** - * Messageboard river view - */ - -$messageboard = $vars['item']->getAnnotation(); - -echo elgg_view('river/elements/layout', array( - 'item' => $vars['item'], - 'message' => $messageboard->value, -)); +<?php
+/**
+ * Messageboard river view
+ */
+
+$messageboard = $vars['item']->getAnnotation();
+$excerpt = elgg_get_excerpt($messageboard->value);
+
+echo elgg_view('river/elements/layout', array(
+ 'item' => $vars['item'],
+ 'message' => $excerpt,
+));
|