mirror of
https://github.com/friendica/friendica
synced 2025-04-27 12:30:11 +00:00
Issue 13041: API activities for reshared posts are now performed on the original posts
This commit is contained in:
parent
f74cc59530
commit
a5b00e9199
17 changed files with 107 additions and 30 deletions
|
@ -38,7 +38,7 @@ class StatusSource extends BaseFactory
|
|||
*/
|
||||
public function createFromUriId(int $uriId, int $uid): \Friendica\Object\Api\Mastodon\StatusSource
|
||||
{
|
||||
$post = Post::selectFirst(['uri-id', 'raw-body', 'body', 'title'], ['uri-id' => $uriId, 'uid' => [0, $uid]]);
|
||||
$post = Post::selectOriginal(['uri-id', 'raw-body', 'body', 'title'], ['uri-id' => $uriId, 'uid' => [0, $uid]]);
|
||||
|
||||
$spoiler_text = $post['title'] ?: BBCode::toPlaintext(BBCode::getAbstract($post['body'], Protocol::ACTIVITYPUB));
|
||||
$body = BBCode::toMarkdown(Post\Media::removeFromEndOfBody($post['body']));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue