mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 16:29:32 +08:00
FIX: Regression in admin new features (#12068)
This commit is contained in:
@ -117,12 +117,12 @@ module DiscourseUpdates
|
|||||||
|
|
||||||
def new_features_payload
|
def new_features_payload
|
||||||
response = Excon.new(new_features_endpoint).request(expects: [200], method: :Get)
|
response = Excon.new(new_features_endpoint).request(expects: [200], method: :Get)
|
||||||
JSON.parse(response.body)
|
response.body
|
||||||
end
|
end
|
||||||
|
|
||||||
def update_new_features(json = nil)
|
def update_new_features(payload = nil)
|
||||||
json ||= new_features_payload
|
payload ||= new_features_payload
|
||||||
Discourse.redis.set(new_features_key, json)
|
Discourse.redis.set(new_features_key, payload)
|
||||||
end
|
end
|
||||||
|
|
||||||
def new_features
|
def new_features
|
||||||
|
Reference in New Issue
Block a user