/soapbox --> /instance

stable/1.0.x
Alex Gleason 2020-04-25 23:27:02 -05:00
rodzic 6477bd3533
commit 24f448e679
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
7 zmienionych plików z 4 dodań i 7 usunięć

2
.gitignore vendored
Wyświetl plik

@ -5,5 +5,5 @@
/coverage/
/.eslintcache
/.env
/public/soapbox
/public/instance
/deploy.sh

Wyświetl plik

@ -105,7 +105,7 @@ For https, be sure to also set `PROXY_HTTPS_INSECURE=true`.
URL to the [Soapbox Patron](https://gitlab.com/soapbox-pub/soapbox-patron) server, if you have one.
This setting is not useful unless `"extensions": { "patron": true }` is also set in `public/soapbox/soapbox.json`.
This setting is not useful unless `"extensions": { "patron": true }` is also set in `public/instance/soapbox.json`.
**Default:** `http://localhost:5000`

Wyświetl plik

@ -5,7 +5,7 @@ export const SOAPBOX_CONFIG_FAIL = 'SOAPBOX_CONFIG_FAIL';
export function fetchSoapboxConfig() {
return (dispatch, getState) => {
api(getState).get('/soapbox/soapbox.json').then(response => {
api(getState).get('/instance/soapbox.json').then(response => {
dispatch(importSoapboxConfig(response.data));
}).catch(error => {
dispatch(soapboxConfigFail(error));

Wyświetl plik

@ -90,7 +90,7 @@ If it's not documented, it's because I inherited it from Mastodon and I don't kn
- `patron` - Data related to [soapbox-patron](https://gitlab.com/soapbox-pub/soapbox-patron)
- `soapbox` - Soapbox specific configuration pulled from `/soapbox/soapbox.json`. The configuration file isn't required and this map can be empty.
- `soapbox` - Soapbox specific configuration pulled from `/instance/soapbox.json`. The configuration file isn't required and this map can be empty.
- `instance` - Instance data pulled from `/api/v1/instance`

Wyświetl plik

@ -1,3 +0,0 @@
<h1>Hello world!</h1>
<p>You made it.</p>