combine context for quoted tweet in reply
This commit is contained in:
parent
271287e6f3
commit
6e86e086c3
1 changed files with 6 additions and 2 deletions
|
@ -81,8 +81,12 @@ proc createStatusRouter*(cfg: Config) =
|
|||
let
|
||||
quote = tweet.quote.get()
|
||||
quoteUser = quote.user
|
||||
context = &"↘ Quoting: {quoteUser.fullname} (@{quoteUser.username})"
|
||||
contextUrl = &"{getUrlPrefix(cfg)}/i/status/{quote.id}"
|
||||
if tweet.replyId != 0:
|
||||
context = &"↩ Replying to: @{tweet.replyHandle}\n↘ Quoting: {quoteUser.fullname} (@{quoteUser.username})"
|
||||
contextUrl = &"{getUrlPrefix(cfg)}/i/status/{tweet.replyId}"
|
||||
else:
|
||||
context = &"↘ Quoting: {quoteUser.fullname} (@{quoteUser.username})"
|
||||
contextUrl = &"{getUrlPrefix(cfg)}/i/status/{quote.id}"
|
||||
elif tweet.replyId != 0:
|
||||
context = &"↩ Replying to: @{tweet.replyHandle}"
|
||||
contextUrl = &"{getUrlPrefix(cfg)}/i/status/{tweet.replyId}"
|
||||
|
|
Loading…
Reference in a new issue