Skip to content

Commit

Permalink
patch tootstream for magicalraccoon/tootstream#231
Browse files Browse the repository at this point in the history
  • Loading branch information
sthen committed Sep 21, 2023
1 parent 1d4fe5e commit 109df8f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion www/tootstream/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ COMMENT = CLI for interacting with Mastodon/fediverse instances

MODPY_EGG_VERSION = 0.3.8.1
DISTNAME = tootstream-${MODPY_EGG_VERSION}
REVISION = 2
REVISION = 3

CATEGORIES = www

Expand Down
37 changes: 37 additions & 0 deletions www/tootstream/patches/patch-src_tootstream_toot_py
Original file line number Diff line number Diff line change
@@ -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>'

0 comments on commit 109df8f

Please sign in to comment.