mirror of
https://github.com/friendica/friendica
synced 2025-04-22 03:10:10 +00:00
Issue 11853/11867: Fix reshare of public posts
This commit is contained in:
parent
1e4e7d5b58
commit
2173fb38e0
5 changed files with 24 additions and 27 deletions
|
@ -51,9 +51,9 @@ class Activity extends BaseModule
|
|||
$itemId = $this->parameters['id'];
|
||||
|
||||
if (in_array($verb, ['announce', 'unannounce'])) {
|
||||
$item = Post::selectFirst(['network', 'uri-id', 'uid'], ['id' => $itemId]);
|
||||
$item = Post::selectFirst(['network', 'uri-id'], ['id' => $itemId, 'uid' => [local_user(), 0]]);
|
||||
if ($item['network'] == Protocol::DIASPORA) {
|
||||
Diaspora::performReshare($item['uri-id'], $item['uid']);
|
||||
Diaspora::performReshare($item['uri-id'], local_user());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue