Commit 02573ef6 authored by Evan Prodromou's avatar Evan Prodromou

incorrect use of match results

darcs-hash:20081124040224-84dde-ca5e732949bf2f837b4d99f7fe705f0fd74b9a48.gz
parent 48c2d39a
......@@ -1326,9 +1326,11 @@ function common_save_replies($notice) {
$replied[$recipient->id] = 1;
}
}
# Hash format replies, too
$cnt = preg_match_all('/(?:^|\s)@#([a-z0-9]{1,64})/', $notice->content, $match);
foreach ($match as $tag) {
if ($cnt) {
foreach ($match[1] as $tag) {
$tagged = Profile_tag::getTagged($sender->id, $tag);
foreach ($tagged as $t) {
if (!$replied[$t->id]) {
......@@ -1343,7 +1345,7 @@ function common_save_replies($notice) {
}
}
}
}
}
function common_broadcast_notice($notice, $remote=false) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment