forked from GNUsocial/gnu-social
Exception wasn't thrown. How does PHP handle daisychained calls, really?
This commit is contained in:
parent
c70a519555
commit
df5aa6f93a
@ -1317,7 +1317,8 @@ class Notice extends Managed_DataObject
|
|||||||
|
|
||||||
// If it's a reply, save for the replied-to author
|
// If it's a reply, save for the replied-to author
|
||||||
try {
|
try {
|
||||||
$author = $this->getParent()->getProfile();
|
$parent = $this->getParent();
|
||||||
|
$author = $parent->getProfile();
|
||||||
if ($author instanceof Profile) {
|
if ($author instanceof Profile) {
|
||||||
$this->saveReply($author->id);
|
$this->saveReply($author->id);
|
||||||
$replied[$author->id] = 1;
|
$replied[$author->id] = 1;
|
||||||
|
@ -346,7 +346,8 @@ class XmppPlugin extends ImPlugin
|
|||||||
$xs->elementStart('body', array('xmlns' => 'http://www.w3.org/1999/xhtml'));
|
$xs->elementStart('body', array('xmlns' => 'http://www.w3.org/1999/xhtml'));
|
||||||
$xs->element('a', array('href' => $profile->profileurl), $profile->nickname);
|
$xs->element('a', array('href' => $profile->profileurl), $profile->nickname);
|
||||||
try {
|
try {
|
||||||
$orig_profile = $notice->getParent()->getProfile();
|
$parent = $notice->getParent();
|
||||||
|
$orig_profile = $parent->getProfile();
|
||||||
$orig_profurl = $orig_profile->getUrl();
|
$orig_profurl = $orig_profile->getUrl();
|
||||||
$xs->text(" => ");
|
$xs->text(" => ");
|
||||||
$xs->element('a', array('href' => $orig_profurl), $orig_profile->nickname);
|
$xs->element('a', array('href' => $orig_profurl), $orig_profile->nickname);
|
||||||
|
Loading…
Reference in New Issue
Block a user