mirror of
https://github.com/fergalmoran/dss.api.git
synced 2026-01-01 06:07:50 +00:00
Merge tag 'port_change' into develop
Changed port to 8001
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#!/bin/sh
|
||||
su -m djworker -c "python manage.py runserver_plus 0.0.0.0:8000"
|
||||
su -m djworker -c "python manage.py runserver_plus 0.0.0.0:8001"
|
||||
|
||||
@@ -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