X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lib%2Futil.php;h=395fadfbd7bcf35010ccaa993bbdee9de51e832f;hb=6b9a8b7b199991f4f26f3460fda85f8f59adbbd3;hp=cafe209a74f653939883bd65ccd6f5037311c639;hpb=e728e2aa8199b16911a98189c7f08d3b82270aad;p=quix0rs-gnu-social.git diff --git a/lib/util.php b/lib/util.php index cafe209a74..395fadfbd7 100644 --- a/lib/util.php +++ b/lib/util.php @@ -697,11 +697,8 @@ function common_linkify_mention(array $mention) */ function common_find_mentions($text, Notice $notice) { - try { - $sender = Profile::getKV('id', $notice->profile_id); - } catch (NoProfileException $e) { - return array(); - } + // The getProfile call throws NoProfileException on failure + $sender = $notice->getProfile(); $mentions = array();