From: ayleph Date: Sat, 31 Oct 2015 08:18:44 +0000 (-0400) Subject: Allow API client to GET another user's outbox X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=34f1d8a264ac08f94051b6b07799270a96b7c666;p=mediagoblin.git Allow API client to GET another user's outbox Signed-off-by: Jessica Tallon --- 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())