mirror of
https://github.com/friendica/friendica
synced 2025-04-22 12:30:12 +00:00
Merge pull request #9635 from MrPetovan/bug/notices
Batch of notice fixes
This commit is contained in:
commit
809035b872
4 changed files with 12 additions and 5 deletions
|
@ -33,7 +33,7 @@ class Source extends BaseAdmin
|
|||
{
|
||||
parent::content($parameters);
|
||||
|
||||
$guid = basename($_REQUEST['guid'] ?? '') ?: $parameters['guid'];
|
||||
$guid = basename($_REQUEST['guid'] ?? $parameters['guid'] ?? '');
|
||||
|
||||
$source = '';
|
||||
$item_uri = '';
|
||||
|
|
|
@ -103,6 +103,10 @@ class Objects extends BaseModule
|
|||
|
||||
if (empty($parameters['activity']) && ($item['gravity'] != GRAVITY_ACTIVITY)) {
|
||||
$activity = ActivityPub\Transmitter::createActivityFromItem($item['id'], true);
|
||||
if (empty($activity['type'])) {
|
||||
throw new HTTPException\NotFoundException();
|
||||
}
|
||||
|
||||
$activity['type'] = $activity['type'] == 'Update' ? 'Create' : $activity['type'];
|
||||
|
||||
// Only display "Create" activity objects here, no reshares or anything else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue