mirror of
https://github.com/mjl-/mox.git
synced 2025-07-17 01:26:07 +03:00
on admin page, show warning when user hasn't enabled "check updates"
and send Accept-header when fetching changelog, so we can show an html version instead of json when requested by regular browsers.
This commit is contained in:
@ -636,6 +636,19 @@
|
||||
}
|
||||
],
|
||||
"Returns": []
|
||||
},
|
||||
{
|
||||
"Name": "CheckUpdatesEnabled",
|
||||
"Docs": "CheckUpdatesEnabled returns whether checking for updates is enabled.",
|
||||
"Params": [],
|
||||
"Returns": [
|
||||
{
|
||||
"Name": "r0",
|
||||
"Typewords": [
|
||||
"bool"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"Sections": [],
|
||||
|
Reference in New Issue
Block a user