mark incoming notices as local or not

darcs-hash:20080722141828-84dde-160fe4582c1949af1f6b049b3336cad493e30510.gz
This commit is contained in:
Evan Prodromou
2008-07-22 10:18:28 -04:00
parent e1361cdf48
commit b1282b1b9f
4 changed files with 5 additions and 1 deletions

View File

@@ -224,6 +224,7 @@ class XMPPDaemon {
function add_notice(&$user, &$pl) {
$notice = new Notice();
$notice->is_local = 1;
$notice->profile_id = $user->id;
$notice->content = trim(substr($pl['body'], 0, 140));
$notice->rendered = common_render_content($notice->content, $notice);