Browse Source

Limit Twitter to 1280x1280.

refactor
Syfaro 8 months ago
parent
commit
359f4d1544
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      src/sites/twitter.py

+ 4
- 2
src/sites/twitter.py View File

@@ -142,9 +142,11 @@ class Twitter(Site):
):
tweet = api.update_status(status=status, possibly_sensitive=True)
else:
filename, bytes = submission.resize_image(1280, 1280)

tweet = api.update_with_media(
filename=submission.image_filename,
file=submission.image_bytes,
filename=filename,
file=bytes,
status=status,
possibly_sensitive=False
if submission.rating == Rating.general


Loading…
Cancel
Save