mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-16 13:07:46 +02:00
fix: remove fediverse prefix to prevent migration error + load routes during podcast import
refactor migration queries to use forge functions
This commit is contained in:
parent
072b3ff61d
commit
7ff1dbe903
63 changed files with 387 additions and 355 deletions
|
|
@ -58,8 +58,8 @@ class PostModel extends FediversePostModel
|
|||
public function setEpisodeIdForRepliesOfEpisodePosts(): int | false
|
||||
{
|
||||
// make sure that posts in reply to episode activities have an episode id
|
||||
$postsToUpdate = $this->db->table(config('Fediverse')->tablesPrefix . 'posts as p1')
|
||||
->join(config('Fediverse')->tablesPrefix . 'posts as p2', 'p1.id = p2.in_reply_to_id')
|
||||
$postsToUpdate = $this->db->table('fediverse_posts as p1')
|
||||
->join('fediverse_posts as p2', 'p1.id = p2.in_reply_to_id')
|
||||
->select('p2.id, p1.episode_id')
|
||||
->where([
|
||||
'p2.in_reply_to_id IS NOT' => null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue