Merge branch 'master' into feature/wallet-changes
# Conflicts: # README.md # apps/promotions/models.py # main/settings.py
This commit is contained in:
commit
d3800584b5
2 changed files with 6 additions and 3 deletions
|
|
@ -391,8 +391,8 @@ WALLET_USER_BILLBOARD_VISIT_INCOME = config('WALLET_USER_BILLBOARD_VISIT_INCOME'
|
||||||
# wallet above. TODO(you): replace with the real wallet-type UUID from the wallet service.
|
# wallet above. TODO(you): replace with the real wallet-type UUID from the wallet service.
|
||||||
WALLET_PROMOTIONS_TRANSIT = config('WALLET_PROMOTIONS_TRANSIT', cast=str)
|
WALLET_PROMOTIONS_TRANSIT = config('WALLET_PROMOTIONS_TRANSIT', cast=str)
|
||||||
# Same wallet-service UUID as the advertising repo's own WALLET_ADVERTISING_TRANSIT setting.
|
# Same wallet-service UUID as the advertising repo's own WALLET_ADVERTISING_TRANSIT setting.
|
||||||
# Destination for promotion types that fund billboard/ad credit rather than a cash-like user
|
# Destination for a Recipient whose wallet_destination is advertising_transit — billboard/ad
|
||||||
# reward (CAPTURE, FIRST_AD_CREATE) — see Recipient.get_wallet_category_uuid().
|
# credit rather than a cash-like user reward — see Recipient.get_wallet_category_uuid().
|
||||||
WALLET_ADVERTISING_TRANSIT = config('WALLET_ADVERTISING_TRANSIT', cast=str)
|
WALLET_ADVERTISING_TRANSIT = config('WALLET_ADVERTISING_TRANSIT', cast=str)
|
||||||
|
|
||||||
NOTIFICATIONS_BASE_PUBLIC_URL = config('NOTIFICATIONS_BASE_PUBLIC_URL', default=None, cast=str)
|
NOTIFICATIONS_BASE_PUBLIC_URL = config('NOTIFICATIONS_BASE_PUBLIC_URL', default=None, cast=str)
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,9 @@ def get_notifications_client():
|
||||||
return client
|
return client
|
||||||
|
|
||||||
|
|
||||||
def notifications_push_user(user_uuid, title, message, priority=5, extras=None):
|
def notifications_push_user(user_uuid, title, message, priority=5, extras=None, click_url=None):
|
||||||
|
# click_url is optional — most notifications aren't clickable. When set,
|
||||||
|
# the notifications service embeds it as the tap destination.
|
||||||
class Tmp():
|
class Tmp():
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
return {
|
return {
|
||||||
|
|
@ -83,6 +85,7 @@ def notifications_push_user(user_uuid, title, message, priority=5, extras=None):
|
||||||
'message': message,
|
'message': message,
|
||||||
'priority': priority,
|
'priority': priority,
|
||||||
'extras': extras,
|
'extras': extras,
|
||||||
|
'click_url': click_url,
|
||||||
}
|
}
|
||||||
|
|
||||||
push_data = Tmp()
|
push_data = Tmp()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue