aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorayleph <ayleph@thisshitistemp.com>2015-10-31 04:18:44 -0400
committerJessica Tallon <tsyesika@tsyesika.se>2015-11-24 10:00:26 +0000
commit34f1d8a264ac08f94051b6b07799270a96b7c666 (patch)
tree129abfb683faff2fa576fdb03e89892770f30dd2
parent89068c2bdb367d9ab61d942248367279121fadca (diff)
downloadmediagoblin-34f1d8a264ac08f94051b6b07799270a96b7c666.tar.lz
mediagoblin-34f1d8a264ac08f94051b6b07799270a96b7c666.tar.xz
mediagoblin-34f1d8a264ac08f94051b6b07799270a96b7c666.zip
Allow API client to GET another user's outbox
Signed-off-by: Jessica Tallon <tsyesika@tsyesika.se>
-rw-r--r--mediagoblin/api/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/api/views.py b/mediagoblin/api/views.py
index 671c3b36..dcd04cd6 100644
--- a/mediagoblin/api/views.py
+++ b/mediagoblin/api/views.py
@@ -565,9 +565,9 @@ def feed_endpoint(request, outbox=None):
# Create outbox
if outbox is None:
- outbox = Activity.query.filter_by(actor=request.user.id)
+ outbox = Activity.query.filter_by(actor=requested_user.id)
else:
- outbox = outbox.filter_by(actor=request.user.id)
+ outbox = outbox.filter_by(actor=requested_user.id)
# We want the newest things at the top (issue: #1055)
outbox = outbox.order_by(Activity.published.desc())