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
|
let
|
||||||
quote = tweet.quote.get()
|
quote = tweet.quote.get()
|
||||||
quoteUser = quote.user
|
quoteUser = quote.user
|
||||||
context = &"↘ Quoting: {quoteUser.fullname} (@{quoteUser.username})"
|
if tweet.replyId != 0:
|
||||||
contextUrl = &"{getUrlPrefix(cfg)}/i/status/{quote.id}"
|
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:
|
elif tweet.replyId != 0:
|
||||||
context = &"↩ Replying to: @{tweet.replyHandle}"
|
context = &"↩ Replying to: @{tweet.replyHandle}"
|
||||||
contextUrl = &"{getUrlPrefix(cfg)}/i/status/{tweet.replyId}"
|
contextUrl = &"{getUrlPrefix(cfg)}/i/status/{tweet.replyId}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue