mirror of
https://github.com/fergalmoran/dss.api.git
synced 2026-01-04 23:54:27 +00:00
Commented auto-facebook share
This commit is contained in:
@@ -49,13 +49,14 @@ class Activity(BaseModel):
|
||||
else:
|
||||
action_type = "deepsouthsounds:play"
|
||||
|
||||
social_account = SocialToken.objects.filter(account__user=self.user.user, account__provider='facebook')[0]
|
||||
facebook = OpenFacebook(social_account.token)
|
||||
notification_html = {
|
||||
object: wrap_full(self.get_object_url())
|
||||
}
|
||||
result = facebook.set('me/%s' % action_type, notification_html)
|
||||
print(result)
|
||||
if False:
|
||||
social_account = SocialToken.objects.filter(account__user=self.user.user, account__provider='facebook')[0]
|
||||
facebook = OpenFacebook(social_account.token)
|
||||
notification_html = {
|
||||
object: wrap_full(self.get_object_url())
|
||||
}
|
||||
result = facebook.set('me/%s' % action_type, notification_html)
|
||||
print(result)
|
||||
except Exception as ex:
|
||||
print(ex)
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user