X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=discourse%2Fdiscourse.php;h=f52edb9fb74597294cc1aa9127aead42e850e6ba;hb=629c1cca9f330db4e57c8ed3f505acf9f29b734e;hp=b3f95bbb46615ec08af83ac0fa7252fa6d627725;hpb=72c24efe5b1805c95d99ccfd891742d9178e87ae;p=friendica-addons.git diff --git a/discourse/discourse.php b/discourse/discourse.php index b3f95bbb..f52edb9f 100644 --- a/discourse/discourse.php +++ b/discourse/discourse.php @@ -106,7 +106,7 @@ function discourse_email_getmessage(App $a, &$message) } // Remove the title on comments, they don't serve any purpose there - if ($message['item']['parent-uri'] != $message['item']['uri']) { + if ($message['item']['thr-parent'] != $message['item']['uri']) { unset($message['item']['title']); } } @@ -203,7 +203,7 @@ function discourse_get_user($post, $hostaddr) $avatar = $contact['photo']; unset($contact['photo']); DBA::update('contact', $contact, ['id' => $contact['id']]); - Contact::updateAvatar($avatar, 0, $contact['id']); + Contact::updateAvatar($contact['id'], $avatar); $contact['photo'] = $avatar; }