aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-05-05 16:16:32 -0700
committerfriendica <info@friendica.com>2014-05-05 16:16:32 -0700
commitbdbda6074cb3bc06b748a557b9c16f775ecc3508 (patch)
tree997300a7150333394fd2ca99dcb56ef1d37e56c7 /include
parent94b2ac6abb193452fd357e0bf609f6991ff8115a (diff)
downloadvolse-hubzilla-bdbda6074cb3bc06b748a557b9c16f775ecc3508.tar.gz
volse-hubzilla-bdbda6074cb3bc06b748a557b9c16f775ecc3508.tar.bz2
volse-hubzilla-bdbda6074cb3bc06b748a557b9c16f775ecc3508.zip
add message_id to reshared items so that we can eventually notify the original poster via an activity that their item was shared.
Diffstat (limited to 'include')
-rw-r--r--include/bbcode.php6
1 files changed, 6 insertions, 0 deletions
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) : '');