Skip to content

Commit

Permalink
Working on compatibility with current version of PyPump.
Browse files Browse the repository at this point in the history
  • Loading branch information
Douglas Perkins committed Sep 1, 2015
1 parent 4d551b9 commit 1f5cac7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pumptweet/PumpTweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ def ispublic(self, activity):
recipients = []
recipients += getattr(activity, 'to', [])
recipients += getattr(activity, 'cc', [])
public_id = Public().id

for recipient in recipients:
if recipient.id == Public.ENDPOINT:
if recipient.id == public_id:
return True

return False

# Returns recent outbox activities.
Expand Down

0 comments on commit 1f5cac7

Please sign in to comment.