kopia lustrzana https://github.com/halcy/Mastodon.py
fixed copy paste typo. Should be able to set header image now
rodzic
995de2c6f9
commit
aa57929d1e
|
@ -2136,7 +2136,7 @@ class Mastodon:
|
||||||
|
|
||||||
# Load header, if specified
|
# Load header, if specified
|
||||||
if not header is None:
|
if not header is None:
|
||||||
if header_mime_type is None and (isinstance(avatar, str) and os.path.isfile(header)):
|
if header_mime_type is None and (isinstance(header, str) and os.path.isfile(header)):
|
||||||
header_mime_type = guess_type(header)
|
header_mime_type = guess_type(header)
|
||||||
header = open(header, 'rb')
|
header = open(header, 'rb')
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue