File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ def set_pin(self, postid):
7676 else :
7777 # This should be unpinned
7878 r2 = requests .post (
79- '{}/api/v1/statuses{}/unpin' .format (self .settings .MASTODON_BASEURL , p ['id' ]),
79+ '{}/api/v1/statuses/ {}/unpin' .format (self .settings .MASTODON_BASEURL , p ['id' ]),
8080 headers = {'Authorization' : 'Bearer {}' .format (self .settings .MASTODON_TOKEN )},
8181 timeout = 10 ,
8282 )
@@ -86,7 +86,7 @@ def set_pin(self, postid):
8686 if not found :
8787 # Not already pinned, so pin!
8888 r2 = requests .post (
89- '{}/api/v1/statuses{}/pin' .format (self .settings .MASTODON_BASEURL , postid ),
89+ '{}/api/v1/statuses/ {}/pin' .format (self .settings .MASTODON_BASEURL , postid ),
9090 headers = {'Authorization' : 'Bearer {}' .format (self .settings .MASTODON_TOKEN )},
9191 timeout = 10 ,
9292 )
You can’t perform that action at this time.
0 commit comments