mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Rearchitect profile, support pins, Profile -> User
This commit is contained in:
parent
79b98a8081
commit
51ae076ea0
23 changed files with 375 additions and 286 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# SPDX-License-Identifier: AGPL-3.0-only
|
||||
import asyncdispatch, strutils, sequtils, uri, options
|
||||
import asyncdispatch, strutils, sequtils, uri, options, sugar
|
||||
|
||||
import jester, karax/vdom
|
||||
|
||||
|
|
@ -7,7 +7,7 @@ import router_utils
|
|||
import ".."/[types, formatters, api]
|
||||
import ../views/[general, status]
|
||||
|
||||
export uri, sequtils, options
|
||||
export uri, sequtils, options, sugar
|
||||
export router_utils
|
||||
export api, formatters
|
||||
export status
|
||||
|
|
@ -16,6 +16,7 @@ proc createStatusRouter*(cfg: Config) =
|
|||
router status:
|
||||
get "/@name/status/@id/?":
|
||||
cond '.' notin @"name"
|
||||
cond not @"id".any(c => not c.isDigit)
|
||||
let prefs = cookiePrefs()
|
||||
|
||||
# used for the infinite scroll feature
|
||||
|
|
@ -37,7 +38,7 @@ proc createStatusRouter*(cfg: Config) =
|
|||
|
||||
let
|
||||
title = pageTitle(conv.tweet)
|
||||
ogTitle = pageTitle(conv.tweet.profile)
|
||||
ogTitle = pageTitle(conv.tweet.user)
|
||||
desc = conv.tweet.text
|
||||
|
||||
var
|
||||
|
|
|
|||
Loading…
Reference in a new issue