mirror of
https://github.com/discourse/discourse.git
synced 2025-03-28 17:25:44 +08:00
FIX: Conflict error (version was already used)
This commit is contained in:
parent
e8fafbc123
commit
99a2a769d4
@ -4,7 +4,7 @@ import { historyHeat } from "discourse/widgets/post-edits-indicator";
|
|||||||
import showModal from "discourse/lib/show-modal";
|
import showModal from "discourse/lib/show-modal";
|
||||||
|
|
||||||
export default Ember.Component.extend({
|
export default Ember.Component.extend({
|
||||||
hasEdits: Ember.computed.gt("reviewable.version", 1),
|
hasEdits: Ember.computed.gt("reviewable.post_version", 1),
|
||||||
|
|
||||||
@computed("reviewable.post_updated_at")
|
@computed("reviewable.post_updated_at")
|
||||||
historyClass(updatedAt) {
|
historyClass(updatedAt) {
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
class ReviewableFlaggedPostSerializer < ReviewableSerializer
|
class ReviewableFlaggedPostSerializer < ReviewableSerializer
|
||||||
target_attributes :cooked, :raw, :reply_count, :version
|
target_attributes :cooked, :raw, :reply_count
|
||||||
attributes :blank_post, :post_updated_at
|
attributes :blank_post, :post_updated_at, :post_version
|
||||||
|
|
||||||
|
def post_version
|
||||||
|
object.target&.version
|
||||||
|
end
|
||||||
|
|
||||||
def post_updated_at
|
def post_updated_at
|
||||||
object.target&.updated_at
|
object.target&.updated_at
|
||||||
|
Loading…
x
Reference in New Issue
Block a user