mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Detect suspended accounts
This commit is contained in:
parent
240ce15651
commit
8a6978cf74
8 changed files with 38 additions and 6 deletions
|
|
@ -71,6 +71,9 @@ proc showTimeline*(request: Request; query: Query; cfg: Config; prefs: Prefs;
|
|||
(p, t) = await fetchSingleTimeline(names[0], after, agent, query)
|
||||
r = await rail
|
||||
if p.username.len == 0: return
|
||||
if p.suspended:
|
||||
return showError(getSuspended(p.username), cfg)
|
||||
|
||||
let pHtml = renderProfile(p, t, r, prefs, getPath())
|
||||
return renderMain(pHtml, request, cfg, pageTitle(p), pageDesc(p),
|
||||
rss=rss, images = @[p.getUserpic("_200x200")])
|
||||
|
|
|
|||
Loading…
Reference in a new issue