https://reisub.nsupdate.info/git
/
friendica.git
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a58fe4
)
Suppress error message for non-existing contacts in mod/follow
author
Hypolite Petovan
<mrpetovan@gmail.com>
Fri, 30 Mar 2018 03:29:41 +0000
(23:29 -0400)
committer
Hypolite Petovan
<mrpetovan@gmail.com>
Fri, 30 Mar 2018 03:29:41 +0000
(23:29 -0400)
mod/follow.php
patch
|
blob
|
history
diff --git
a/mod/follow.php
b/mod/follow.php
index
639fa06
..
1292d24
100644
(file)
--- a/
mod/follow.php
+++ b/
mod/follow.php
@@
-176,7
+176,10
@@
function follow_content(App $a)
$a->page['aside'] = '';
- Profile::load($a, '', 0, Contact::getDetailsByURL($ret['url']), false);
+ $profiledata = Contact::getDetailsByURL($ret['url']);
+ if ($profiledata) {
+ Profile::load($a, '', 0, $profiledata, false);
+ }
if ($gcontact_id <> 0) {
$o .= replace_macros(get_markup_template('section_title.tpl'),