We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84b2291 commit 67fc6f2Copy full SHA for 67fc6f2
1 file changed
pgweb/util/socialposter.py
@@ -76,7 +76,7 @@ def set_pin(self, postid):
76
else:
77
# This should be unpinned
78
r2 = requests.post(
79
- '{}/api/v1/statuses{}/unpin'.format(self.settings.MASTODON_BASEURL, p['id']),
+ '{}/api/v1/statuses/{}/unpin'.format(self.settings.MASTODON_BASEURL, p['id']),
80
headers={'Authorization': 'Bearer {}'.format(self.settings.MASTODON_TOKEN)},
81
timeout=10,
82
)
@@ -86,7 +86,7 @@ def set_pin(self, postid):
86
if not found:
87
# Not already pinned, so pin!
88
89
- '{}/api/v1/statuses{}/pin'.format(self.settings.MASTODON_BASEURL, postid),
+ '{}/api/v1/statuses/{}/pin'.format(self.settings.MASTODON_BASEURL, postid),
90
91
92
0 commit comments