feat(comments): add comments to episodes + update naming of status to post

- remove confusing counts for episode (total favourites, total reblogs)
- add comments section to
episode page to display episode comments + post replies linked to the episode
This commit is contained in:
Yassine Doghri 2021-08-13 11:07:29 +00:00
commit bb4752c35e
86 changed files with 1667 additions and 1152 deletions

View file

@ -31,7 +31,7 @@ class ActivityModel extends UuidModel
/**
* @var string[]
*/
protected $uuidFields = ['id', 'status_id'];
protected $uuidFields = ['id', 'post_id'];
/**
* @var string[]
@ -40,7 +40,7 @@ class ActivityModel extends UuidModel
'id',
'actor_id',
'target_actor_id',
'status_id',
'post_id',
'type',
'payload',
'task_status',
@ -88,7 +88,7 @@ class ActivityModel extends UuidModel
string $type,
int $actorId,
?int $targetActorId,
?string $statusId,
?string $postId,
string $payload,
DateTimeInterface $scheduledAt = null,
?string $taskStatus = null
@ -97,7 +97,7 @@ class ActivityModel extends UuidModel
[
'actor_id' => $actorId,
'target_actor_id' => $targetActorId,
'status_id' => $statusId,
'post_id' => $postId,
'type' => $type,
'payload' => $payload,
'scheduled_at' => $scheduledAt,