Skip to content

Commit

Permalink
facebook: add new "Thankful" flower reaction. fixes bridgy#748
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed May 15, 2017
1 parent abfd2b7 commit 5b53c3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions granary/facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,14 @@
'rsvp-maybe': API_PUBLISH_RSVP_MAYBE,
'rsvp-interested': None, # not supported. see API_PUBLISH_RSVP_INTERESTED
}
# https://developers.facebook.com/docs/graph-api/reference/post/reactions
REACTION_CONTENT = {
'LOVE': u'❤️',
'WOW': u'😮',
'HAHA': u'😆',
'SAD': u'😢',
'ANGRY': u'😡',
'THANKFUL': u'🌼', # https://github.com/snarfed/bridgy/issues/748
# nothing for LIKE (it's a like :P) or for NONE
}

Expand Down
2 changes: 1 addition & 1 deletion granary/test/test_facebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def tag_uri(name):
{'id': '683713', 'name': 'Bob Y'},
]},
'reactions': {'data': [
# possible types are NONE, LIKE, LOVE, WOW, HAHA, SAD, ANGRY
# possible types are NONE, LIKE, LOVE, WOW, HAHA, SAD, ANGRY, THANKFUL
{'id': '100005', 'name': 'Laugher', 'type': 'HAHA'},
{'id': '100006', 'name': 'Cryer', 'type': 'SAD'},
# likes are duplicated in reactions
Expand Down

0 comments on commit 5b53c3c

Please sign in to comment.