[MM-54138] Remove code involving getRedirectLocation and state.entities.posts.expandedURLs (#24739)

Этот коммит содержится в:
M-ZubairAhmed
2023-10-16 16:09:59 +05:30
коммит произвёл GitHub
родитель d98dc31425
Коммит d557bd864f
10 изменённых файлов: 1 добавлений и 197 удалений

Просмотреть файл

@@ -420,10 +420,6 @@ export default class Client4 {
return `${this.getBaseRoute()}/schemes`;
}
getRedirectLocationRoute() {
return `${this.getBaseRoute()}/redirect_location`;
}
getBotsRoute() {
return `${this.getBaseRoute()}/bots`;
}
@@ -3683,17 +3679,6 @@ export default class Client4 {
);
}
// Redirect Location
getRedirectLocation = (urlParam: string) => {
if (!urlParam.length) {
return Promise.resolve();
}
const url = `${this.getRedirectLocationRoute()}${buildQueryString({url: urlParam})}`;
return this.doFetch<{
location: string;
}>(url, {method: 'get'});
};
// Bot Routes
createBot = (bot: Bot) => {