mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 03:27:45 +02:00
fix(activitypub): set created_by to null for reblog if no user + update episode oembed data
This commit is contained in:
parent
7aa37d24ac
commit
209dfbd134
7 changed files with 36 additions and 26 deletions
|
|
@ -469,11 +469,16 @@ class PostModel extends BaseUuidModel
|
|||
{
|
||||
$this->db->transStart();
|
||||
|
||||
$userId = null;
|
||||
if (function_exists('user_id')) {
|
||||
$userId = user_id();
|
||||
}
|
||||
|
||||
$reblog = new Post([
|
||||
'actor_id' => $actor->id,
|
||||
'reblog_of_id' => $post->id,
|
||||
'published_at' => Time::now(),
|
||||
'created_by' => user_id(),
|
||||
'created_by' => $userId,
|
||||
]);
|
||||
|
||||
// add reblog
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue