mirror of
https://github.com/friendica/friendica
synced 2025-04-20 15:10:12 +00:00
Test code removed
This commit is contained in:
parent
bd2ee581d3
commit
4a90e6b1f0
2 changed files with 2 additions and 8 deletions
|
@ -50,17 +50,13 @@ class Activity extends BaseModule
|
|||
|
||||
$verb = $this->parameters['verb'];
|
||||
$itemId = $this->parameters['id'];
|
||||
Logger::info('Blubb-1', ['id' => $itemId, 'verb' => $verb]);
|
||||
|
||||
if (in_array($verb, ['announce', 'unannounce'])) {
|
||||
$item = Post::selectFirst(['network', 'uri-id', 'uid'], ['id' => $itemId]);
|
||||
Logger::info('Blubb-2', ['id' => $itemId, 'item' => $item]);
|
||||
if ($item['network'] == Protocol::DIASPORA) {
|
||||
Logger::info('Blubb-3', ['id' => $itemId]);
|
||||
$id = Diaspora::performReshare($item['uri-id'], $item['uid']);
|
||||
Logger::info('Blubb-ende', ['id' => $id]);
|
||||
Diaspora::performReshare($item['uri-id'], $item['uid']);
|
||||
}
|
||||
}
|
||||
Logger::info('Blubb-activity', ['id' => $itemId]);
|
||||
|
||||
if (!Item::performActivity($itemId, $verb, local_user())) {
|
||||
throw new HTTPException\BadRequestException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue