mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-11 18:56:42 +02:00
chore: update CodeIgniter to latest dev version after 4.1.6
This commit is contained in:
parent
de19317138
commit
1fc3da139e
29 changed files with 276 additions and 336 deletions
|
|
@ -16,6 +16,7 @@ use App\Entities\Podcast;
|
|||
use App\Libraries\CommentObject;
|
||||
use App\Models\EpisodeCommentModel;
|
||||
use App\Models\EpisodeModel;
|
||||
use App\Models\LikeModel;
|
||||
use App\Models\PodcastModel;
|
||||
use CodeIgniter\Exceptions\PageNotFoundException;
|
||||
use CodeIgniter\HTTP\RedirectResponse;
|
||||
|
|
@ -135,7 +136,7 @@ class EpisodeCommentController extends BaseController
|
|||
/**
|
||||
* get comment replies
|
||||
*/
|
||||
$commentReplies = model('CommentModel', false)
|
||||
$commentReplies = model(EpisodeCommentModel::class, false)
|
||||
->where('in_reply_to_id', service('uuid')->fromString($this->comment->id)->getBytes())
|
||||
->orderBy('created_at', 'ASC');
|
||||
|
||||
|
|
@ -167,7 +168,7 @@ class EpisodeCommentController extends BaseController
|
|||
|
||||
public function attemptLike(): RedirectResponse
|
||||
{
|
||||
model('LikeModel')
|
||||
model(LikeModel::class)
|
||||
->toggleLike(interact_as_actor(), $this->comment);
|
||||
|
||||
return redirect()->back();
|
||||
|
|
@ -175,7 +176,7 @@ class EpisodeCommentController extends BaseController
|
|||
|
||||
public function attemptReply(): RedirectResponse
|
||||
{
|
||||
model('LikeModel')
|
||||
model(LikeModel::class)
|
||||
->toggleLike(interact_as_actor(), $this->comment);
|
||||
|
||||
return redirect()->back();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue