[MM-54138] Remove code involving getRedirectLocation and state.entities.posts.expandedURLs (#24739)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d98dc31425
Коммит
d557bd864f
@@ -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) => {
|
||||
|
||||
@@ -148,7 +148,6 @@ export type PostsState = {
|
||||
postEditHistory: Post[];
|
||||
currentFocusedPostId: string;
|
||||
messagesHistory: MessageHistory;
|
||||
expandedURLs: Record<string, string>;
|
||||
limitedViews: {
|
||||
channels: Record<Channel['id'], number>;
|
||||
threads: Record<Post['root_id'], number>;
|
||||
|
||||
Ссылка в новой задаче
Block a user