Skip to content

Commit 67fc6f2

Browse files
committed
Add missing / in mastodon API urls
1 parent 84b2291 commit 67fc6f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pgweb/util/socialposter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)