fix(activitypub): set created_by to null for reblog if no user + update episode oembed data

This commit is contained in:
Yassine Doghri 2022-01-23 15:42:56 +00:00
commit 209dfbd134
7 changed files with 36 additions and 26 deletions

View file

@ -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