summaryrefslogtreecommitdiffstats
path: root/fb.py
diff options
context:
space:
mode:
Diffstat (limited to 'fb.py')
-rwxr-xr-xfb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/fb.py b/fb.py
index 67a55ad..101959a 100755
--- a/fb.py
+++ b/fb.py
@@ -609,6 +609,9 @@ class FBClient:
upload_files.append(file)
+ if len(upload_files) == 1 and not upload_files[0].should_upload():
+ upload_files[0] = self.url_to_file(self.config['pastebin']+'/'+upload_files[0].id)
+
resp = self.curlw.upload_files(upload_files)
if self.args.multipaste or len(resp) > 1: