mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-28 02:20:47 +00:00
fix: do not use the deprecated /api/v1/instance end point (#34613)
This commit is contained in:
parent
aedc5f6921
commit
df6b808750
|
|
@ -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,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user