summaryrefslogtreecommitdiff
path: root/xmppdaemon.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-07-09 15:52:38 -0400
committerEvan Prodromou <evan@prodromou.name>2008-07-09 15:52:38 -0400
commit63f1fb4259402bf2b53097d2525878a2f6daa8c4 (patch)
tree6a9741199819612f2c39e351d98a5b3e8926b351 /xmppdaemon.php
parent5793bbc8fd0d963547c15fc4f398660d445f5a5a (diff)
store rendered content on save; display pre-rendered content
darcs-hash:20080709195238-84dde-a5df98439faaf7058571b5e345f165adece9c7b8.gz
Diffstat (limited to 'xmppdaemon.php')
-rwxr-xr-xxmppdaemon.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmppdaemon.php b/xmppdaemon.php
index 708604471..dd2622828 100755
--- a/xmppdaemon.php
+++ b/xmppdaemon.php
@@ -192,6 +192,7 @@ class XMPPDaemon {
$notice = new Notice();
$notice->profile_id = $user->id;
$notice->content = trim(substr($pl['body'], 0, 140));
+ $notice->rendered = common_render_content($notice->content, $notice);
$notice->created = DB_DataObject_Cast::dateTime();
$notice->query('BEGIN');
$id = $notice->insert();