Skip to content

Commit

Permalink
remove support for twitter announcements
Browse files Browse the repository at this point in the history
This probably still worked, however Twitter got renamed and no longer
provides free API access, so we're unable to test or use it.

(Also, the owner is a rightwing shithead)
  • Loading branch information
Kunsi committed Dec 27, 2024
1 parent 59f4903 commit 31f0cf2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 56 deletions.
46 changes: 0 additions & 46 deletions voctopublish/api_client/twitter_client.py

This file was deleted.

3 changes: 0 additions & 3 deletions voctopublish/model/ticket_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,6 @@ def __init__(self, ticket, ticket_id, config):
)

# various announcement bots
self.twitter_enable = self._get_bool(
"Publishing.Twitter.Enable", optional=True, try_default=True
)
self.mastodon_enable = self._get_bool(
"Publishing.Mastodon.Enable", optional=True, try_default=True
)
Expand Down
1 change: 0 additions & 1 deletion voctopublish/test/api_client_test/test_youtube_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def setUp(self):
"Publishing.YouTube.Token": "TheToken",
"Publishing.Voctoweb.EnableProfile": "no",
"Publishing.Voctoweb.Enable": "no",
"Publishing.Twitter.Enable": "no",
"Publishing.Mastodon.Enable": "no",
"Encoding.Language": "eng",
}
Expand Down
1 change: 0 additions & 1 deletion voctopublish/test/model_test/test_ticket_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ def setUp(self):
"Publishing.Voctoweb.Thumbpath": "/static.media.ccc.de/events/test/2021",
"Publishing.Voctoweb.Path": "/cdn.media.ccc.de/events/test/2021",
"Publishing.Voctoweb.Slug": "test2021",
"Publishing.Twitter.Enable": "no",
"Publishing.Mastodon.Enable": "yes",
}

Expand Down
5 changes: 0 additions & 5 deletions voctopublish/voctopublish.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import api_client.bluesky_client as bluesky
import api_client.googlechat_client as googlechat
import api_client.mastodon_client as mastodon
import api_client.twitter_client as twitter
import api_client.webhook_client as webhook
from api_client.rclone_client import RCloneClient
from api_client.voctoweb_client import VoctowebClient
Expand Down Expand Up @@ -225,10 +224,6 @@ def publish(self):

self.c3tt.set_ticket_done(self.ticket_id)

# Twitter
if self.ticket.twitter_enable and self.ticket.master:
twitter.send_tweet(self.ticket, CONFIG)

# Mastodon
if self.ticket.mastodon_enable and self.ticket.master:
mastodon.send_toot(self.ticket, CONFIG)
Expand Down

0 comments on commit 31f0cf2

Please sign in to comment.