fix(mtproto-ui): restore status fetch, trim promo footer

ReferenceError fixed by awaiting /api/mtproto/status before using snap. Footer: GitHub-only; dropped Boosty/Ozon/Telegram. Removed advertiseHint from install JSON (hint remains on status).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Андрей Бобырев
2026-05-15 03:32:45 +03:00
parent ecf754c7da
commit 6c2698c106
4 changed files with 5 additions and 11 deletions

View File

@@ -2259,7 +2259,6 @@ app.post("/api/mtproto/install", requireAuth, (req, res) => {
hostPort,
tgLink,
advertisedHost: adv,
advertiseHint: adv ? "" : "Задайте MTPRO_PUBLIC_HOST — иначе в Telegram нужно самим ввести IP и порт из таблицы.",
snapshot: snap,
});
} finally {