1
0
mirror of https://github.com/flarum/core.git synced 2025-07-15 05:46:24 +02:00
Files
php-flarum/framework/core/js
Alexander Skvortsov d8d85a9c14 fix: broken post/discussion soft delete (#3249)
* FIx broken post/discussion soft delete

Before the Model typescript rewrite, `pushAttributes` supported including relationship objects, which is hacky but incorrect behavior. With the rewrite, this functionality was broken.

This PR deprecates the functionality, adds a deprecated BC layer with a debug warning, and removes instances of incorrect usage.

* Update js/src/common/Model.ts

Co-authored-by: David Wheatley <hi@davwheat.dev>

* Update js/src/common/Model.ts

Co-authored-by: David Wheatley <hi@davwheat.dev>

* chore: format

Co-authored-by: David Wheatley <hi@davwheat.dev>
2022-01-04 13:26:46 +00:00
..
2021-12-29 09:43:23 +00:00
2022-01-03 16:57:09 -05:00
2022-01-03 16:57:09 -05:00