add message_id to reshared items so that we can eventually notify the original poster via an activity that their item was shared.

This commit is contained in:
friendica
2014-05-05 16:16:32 -07:00
parent 94b2ac6abb
commit bdbda6074c
2 changed files with 8 additions and 1 deletions

View File

@@ -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) : '');