mirror of
https://github.com/friendica/friendica
synced 2025-04-21 23:50:18 +00:00
Issue 8860: Activities weren't fetchable all the time
This commit is contained in:
parent
52b2f67644
commit
63dc6950d4
2 changed files with 19 additions and 6 deletions
|
@ -57,7 +57,7 @@ class Objects extends BaseModule
|
|||
['order' => ['origin' => true]]
|
||||
);
|
||||
// Valid items are original post or posted from this node (including in the case of a forum)
|
||||
if (!DBA::isResult($item) || !$item['origin'] && !strstr($item['author-link'], DI::baseUrl()->get())) {
|
||||
if (!DBA::isResult($item) || !$item['origin'] && (parse_url($item['author-link'], PHP_URL_HOST) != parse_url(DI::baseUrl()->get(), PHP_URL_HOST))) {
|
||||
throw new HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue