sync ports with The Matrix
This commit is contained in:
parent
4cc27cb2e4
commit
130329df10
773 changed files with 5162 additions and 2980 deletions
37
www/tootstream/patches/patch-src_tootstream_toot_py
Normal file
37
www/tootstream/patches/patch-src_tootstream_toot_py
Normal file
|
@ -0,0 +1,37 @@
|
|||
https://github.com/magicalraccoon/tootstream/issues/231
|
||||
|
||||
Index: src/tootstream/toot.py
|
||||
--- src/tootstream/toot.py.orig
|
||||
+++ src/tootstream/toot.py
|
||||
@@ -905,7 +905,7 @@ def help(mastodon, rest):
|
||||
cprint("{section}:".format(section=section),
|
||||
fg('white') +
|
||||
attr('bold') +
|
||||
- attr('underlined'))
|
||||
+ attr('underline'))
|
||||
new_section = False
|
||||
|
||||
print("{:>12} {:<15} {:<}".format(command, cmd_args, cmd_doc))
|
||||
@@ -958,11 +958,11 @@ def toot(mastodon, rest):
|
||||
cprint("You tooted: ", fg('white') + attr('bold'), end="\n")
|
||||
if resp['sensitive']:
|
||||
cprint('CW: ' + resp['spoiler_text'], fg('red'))
|
||||
- cprint(text, fg('magenta') + attr('bold') + attr('underlined'))
|
||||
+ cprint(text, fg('magenta') + attr('bold') + attr('underline'))
|
||||
posted = True
|
||||
except Exception as e:
|
||||
cprint("Received error: ", fg('red') + attr('bold'), end="")
|
||||
- cprint(e, fg('magenta') + attr('bold') + attr('underlined'))
|
||||
+ cprint(e, fg('magenta') + attr('bold') + attr('underline'))
|
||||
|
||||
# If we're streaming then we can't edit the toot, so assume that we posted.
|
||||
if is_streaming is True:
|
||||
@@ -1104,7 +1104,7 @@ def boost(mastodon, rest):
|
||||
cprint(msg, fg('green'))
|
||||
except Exception as e:
|
||||
cprint("Received error: ", fg('red') + attr('bold'), end="")
|
||||
- cprint(e, fg('magenta') + attr('bold') + attr('underlined'))
|
||||
+ cprint(e, fg('magenta') + attr('bold') + attr('underline'))
|
||||
|
||||
|
||||
boost.__argstr__ = '<id>'
|
Loading…
Add table
Add a link
Reference in a new issue