diff options
Diffstat (limited to 'server.py')
-rw-r--r-- | server.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -98,6 +98,10 @@ class fuwuqi(SimpleHTTPRequestHandler): if activity['type'] == 'Accept' and activity['actor'] == activity['object']['object']: # Follow request accepted collection_append(username, 'following', activity['actor']) + elif activity['type'] == 'Undo' and activity['object']['type'] == 'Follow' and \ + activity['actor'] == activity['object']['actor']: + # Unfollow request + collection_remove(username, 'followers', activity['actor']) elif self.path.endswith('outbox'): # C2S collection_append(username, 'outbox', activity) |