Adopted merge request #232 from statusnet to gnusocial

This commit is contained in:
pztrn
2013-10-05 12:36:48 +04:00
parent 1795267df9
commit 9824b00f4b
2 changed files with 21 additions and 2 deletions

View File

@@ -373,7 +373,16 @@ abstract class ImPlugin extends Plugin
function formatNotice($notice)
{
$profile = $notice->getProfile();
return $profile->nickname . ': ' . $notice->content . ' [' . $notice->id . ']';
$nicknames = $profile->nickname;
if (!empty($notice->reply_to)) {
$orig_notice = $notice->getParent();
$orig_profile = $orig_notice->getProfile();
$nicknames = $nicknames . " => " . $orig_profile->nickname;
}
common_log(LOG_INFO, "Notice: " . $notice->content, __FILE__);
$data = $nicknames . ': ' . $notice->content . ' [' . $notice->id . ']';
return $data;
}
//========================UTILITY FUNCTIONS USEFUL TO IMPLEMENTATIONS - RECEIVING ========================\