aboutsummaryrefslogtreecommitdiff
path: root/server.py
diff options
context:
space:
mode:
authorAnthony Wang2023-01-19 18:24:59 -0500
committerAnthony Wang2023-01-19 18:24:59 -0500
commitdc3f6329b2b22cb94e71b667867e085d48527d14 (patch)
tree2dc98d5af1ffd1b8f5c9a7f548898ab4212d609b /server.py
parentf7403f75dab5fea8e1f3dc022a6cfdd523094e1c (diff)
Style fixes
Diffstat (limited to 'server.py')
-rw-r--r--server.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/server.py b/server.py
index 18fa263..244fa53 100644
--- a/server.py
+++ b/server.py
@@ -104,8 +104,6 @@ class fuwuqi(SimpleHTTPRequestHandler):
# C2S
collection_append(username, 'outbox', activity)
# Clients responsible for addressing activity
- if type(activity['to']) is not list:
- activity['to'] = [activity['to']]
for to in activity['to']:
if 'followers' in to or to == 'https://www.w3.org/ns/activitystreams#Public':
with open(f'users/{username}.followers') as f: