mirror of
https://github.com/zedeus/nitter.git
synced 2025-12-15 08:42:48 -05:00
Rearchitect profile, support pins, Profile -> User
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user