X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObject%2FPost.php;h=a8577dd8bedda9ad7e62db6425b28341f71e99f7;hb=a85aa24d56e0aa0217529aaad9829ec6e7a2bc2e;hp=807c2d2227364ecb510503668c8118c5a1bdc807;hpb=8adc761da0e6012aa0176047812df15adb15c33a;p=friendica.git diff --git a/src/Object/Post.php b/src/Object/Post.php index 807c2d2227..a8577dd8be 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -238,7 +238,7 @@ class Post extends BaseObject $location = ((strlen($locate['html'])) ? $locate['html'] : render_location_dummy($locate)); // process action responses - e.g. like/dislike/attend/agree/whatever - $response_verbs = ['like', 'dislike']; + $response_verbs = ['like', 'dislike', 'announce']; $isevent = false; $attend = []; @@ -806,10 +806,9 @@ class Post extends BaseObject } $terms = Term::tagArrayFromItemId($this->getId(), [Term::MENTION, Term::IMPLICIT_MENTION]); - foreach ($terms as $term) { $profile = Contact::getDetailsByURL($term['url']); - if (!empty($profile['addr']) && !empty($profile['contact-type']) && ($profile['contact-type'] != Contact::TYPE_COMMUNITY) && + if (!empty($profile['addr']) && (defaults($profile, 'contact-type', Contact::TYPE_UNKNOWN) != Contact::TYPE_COMMUNITY) && ($profile['addr'] != $owner['addr']) && !strstr($text, $profile['addr'])) { $text .= '@' . $profile['addr'] . ' '; }