diff --git a/app/serializers/post_revision_serializer.rb b/app/serializers/post_revision_serializer.rb index 415999e8e95..1791c38304f 100644 --- a/app/serializers/post_revision_serializer.rb +++ b/app/serializers/post_revision_serializer.rb @@ -190,7 +190,12 @@ class PostRevisionSerializer < ApplicationSerializer def all_revisions return @all_revisions if @all_revisions - post_revisions = PostRevision.where(post_id: object.post_id).order(:number).to_a + post_revisions = PostRevision + .where(post_id: object.post_id) + .order(number: :desc) + .limit(99) + .to_a + .reverse latest_modifications = { "raw" => [post.raw], diff --git a/config/locales/client.en.yml b/config/locales/client.en.yml index 0485093fae3..280f26797ad 100644 --- a/config/locales/client.en.yml +++ b/config/locales/client.en.yml @@ -3374,7 +3374,7 @@ en: one: "user" other: "users" category_title: "Category" - history: "History" + history: "History, last 100 revisions" changed_by: "by %{author}" raw_email: