Fix #4184: post_versions API throws when user is 'anonymous'
This commit is contained in:
@@ -255,7 +255,7 @@ class PostArchive < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def updater_name
|
def updater_name
|
||||||
updater.name
|
updater&.name
|
||||||
end
|
end
|
||||||
|
|
||||||
def api_attributes
|
def api_attributes
|
||||||
|
|||||||
Reference in New Issue
Block a user