projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32a8f50
)
Fix wrong condition in Diaspora\Fetch
author
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 11 Jul 2020 13:18:42 +0000
(09:18 -0400)
committer
Hypolite Petovan
<hypolite@mrpetovan.com>
Sat, 11 Jul 2020 13:18:42 +0000
(09:18 -0400)
src/Module/Diaspora/Fetch.php
patch
|
blob
|
history
diff --git
a/src/Module/Diaspora/Fetch.php
b/src/Module/Diaspora/Fetch.php
index aba9d33be7025aa43c09685c60a971d8f0e396bb..c94badf7e38cbbfca70b8857810b227a6012b1d8 100644
(file)
--- a/
src/Module/Diaspora/Fetch.php
+++ b/
src/Module/Diaspora/Fetch.php
@@
-59,7
+59,7
@@
class Fetch extends BaseModule
if (empty($item)) {
$condition = ['guid' => $guid, 'network' => [Protocol::DFRN, Protocol::DIASPORA]];
$item = Item::selectFirst(['author-link'], $condition);
- if (
empty($item
)) {
+ if (
!empty($item["author-link"]
)) {
$parts = parse_url($item["author-link"]);
if (empty($parts["scheme"]) || empty($parts["host"])) {
throw new HTTPException\InternalServerErrorException();