Ronald Langeveld
77e3b3e947
🐛 Fixed page revision returning empty array on update and restore ( #17042 )
...
closes https://github.com/TryGhost/Team/issues/3491
- the `PostRevisionModel` had a `belongsTo` relation to Post which resulted in the Page model returning an empty array in the `post_revisions` property.
- Simply removing it fixed it. refs https://ghost.slack.com/archives/C02G9E68C/p1686912389383579?thread_ts=1686909240.034419&cid=C02G9E68C
2023-06-16 13:24:02 +02:00
Fabien "egg" O'Carroll
5feedadc80
Wired up feature image alt and caption to DB and Admin
...
We no longer need a reference to the previous version, instead we can use the
latest revision, this makes it easier to compare "off table" data such as the
feature image caption stored in posts_meta.
2023-04-21 15:26:43 +01:00
Chris Raible
3aec11328f
Populated reason field in post-revisions when revision is created ( #16700 )
...
no issue
2023-04-21 14:36:35 +01:00
Ronald
f37d7a3fc7
Wired up revision post status and reason to admin
...
no issue
We can now get post_status and reason in admin for each post_revision
object
2023-04-21 14:05:27 +01:00
Fabien "egg" O'Carroll
f33f9cc530
Added feature_image to the post history modal
...
This allows us to diff and review previous revisions feature images
2023-04-21 13:20:41 +01:00
Ronald Langeveld
30535eb8f5
Added post revision sidebar list ( #16666 )
...
no issue
<!-- Leave the line below if you'd like GitHub Copilot to generate a
summary from your commit -->
copilot:summary
2023-04-18 16:10:41 +01:00
Chris Raible
af367a2a18
Added post_revisions as a default include for posts ( #16660 )
...
no issue
- post_revisions will now be included in any request to the /posts
endpoint
- updated admin models to include post_revisions
- post revisions can now be accessed in the modal-portal-history via
this.post.post_revisions
2023-04-18 11:12:35 +01:00