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:
parent
94b2ac6abb
commit
bdbda6074c
@ -200,6 +200,12 @@ function bb_ShareAttributes($match) {
|
|||||||
if ($matches[1] != "")
|
if ($matches[1] != "")
|
||||||
$posted = $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
|
// FIXME - this should really be a wall-item-ago so it will get updated on the client
|
||||||
$reldate = (($posted) ? relative_date($posted) : '');
|
$reldate = (($posted) ? relative_date($posted) : '');
|
||||||
|
|
||||||
|
@ -50,7 +50,8 @@ function share_init(&$a) {
|
|||||||
"' profile='".$r[0]['author']['xchan_url'] .
|
"' profile='".$r[0]['author']['xchan_url'] .
|
||||||
"' avatar='".$r[0]['author']['xchan_photo_s'].
|
"' avatar='".$r[0]['author']['xchan_photo_s'].
|
||||||
"' link='".$r[0]['plink'].
|
"' link='".$r[0]['plink'].
|
||||||
"' posted='".$r[0]['created']."']\n";
|
"' posted='".$r[0]['created'].
|
||||||
|
"' message_id='".$r[0]['mid']."']\n";
|
||||||
if($r[0]['title'])
|
if($r[0]['title'])
|
||||||
$o .= '[b]'.$r[0]['title'].'[/b]'."\n";
|
$o .= '[b]'.$r[0]['title'].'[/b]'."\n";
|
||||||
$o .= $r[0]['body'];
|
$o .= $r[0]['body'];
|
||||||
|
Reference in New Issue
Block a user