We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67562e6 commit 84b2291Copy full SHA for 84b2291
1 file changed
pgweb/util/socialposter.py
@@ -80,8 +80,8 @@ def set_pin(self, postid):
80
headers={'Authorization': 'Bearer {}'.format(self.settings.MASTODON_TOKEN)},
81
timeout=10,
82
)
83
- if r.status_code != 200:
84
- print("Failed to unpin from mastodon: {}".format(r.text))
+ if r2.status_code != 200:
+ print("Failed to unpin from mastodon: {}".format(r2.text))
85
86
if not found:
87
# Not already pinned, so pin!
@@ -90,8 +90,8 @@ def set_pin(self, postid):
90
91
92
93
94
- print("Failed to pin to mastodon: {}".format(r.text))
+ print("Failed to pin to mastodon: {}".format(r2.text))
95
return False
96
97
return True
0 commit comments