mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-12 19:17:45 +02:00
fix(episode-unpublish): set consistent posts_counts' increments/decrements for actors and episodes
Some episodes could not be unpublished because of out of range error when removing posts. fixes #233
This commit is contained in:
parent
9cc2996261
commit
8acdafd260
5 changed files with 40 additions and 45 deletions
|
|
@ -62,7 +62,6 @@ class PostModel extends FediversePostModel
|
|||
->join(config('Fediverse')->tablesPrefix . 'posts as p2', 'p1.id = p2.in_reply_to_id')
|
||||
->select('p2.id, p1.episode_id')
|
||||
->where([
|
||||
'p1.in_reply_to_id' => null,
|
||||
'p2.in_reply_to_id IS NOT' => null,
|
||||
'p2.episode_id' => null,
|
||||
'p1.episode_id IS NOT' => null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue