From bdbda6074cb3bc06b748a557b9c16f775ecc3508 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 5 May 2014 16:16:32 -0700 Subject: add message_id to reshared items so that we can eventually notify the original poster via an activity that their item was shared. --- include/bbcode.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') diff --git a/include/bbcode.php b/include/bbcode.php index 96242fdac..326676b72 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -200,6 +200,12 @@ function bb_ShareAttributes($match) { if ($matches[1] != "") $posted = $matches[1]; + $message_id = ""; + preg_match("/message_id='(.*?)'/ism", $attributes, $matches); + if ($matches[1] != "") + $message_id = $matches[1]; + + // FIXME - this should really be a wall-item-ago so it will get updated on the client $reldate = (($posted) ? relative_date($posted) : ''); -- cgit v1.2.3