mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
[Glitch] fix: do not use the deprecated /api/v1/instance end point
Port df6b808750 to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
@@ -105,7 +105,7 @@ class ReportReasonSelector extends PureComponent {
|
|||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
api(false).get('/api/v1/instance').then(res => {
|
api(false).get('/api/v2/instance').then(res => {
|
||||||
this.setState({
|
this.setState({
|
||||||
rules: res.data.rules,
|
rules: res.data.rules,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user