aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/user.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/web/views/user.py')
-rw-r--r--src/web/views/user.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/web/views/user.py b/src/web/views/user.py
index fc94f205..682e20ff 100644
--- a/src/web/views/user.py
+++ b/src/web/views/user.py
@@ -29,6 +29,10 @@ def profile_public(nickname=None):
if not user.is_public_profile:
return redirect(url_for('home'))
+ filters = {}
+ filters['private__eq'] = False
+ feeds = FeedController(user.id).read(**filters).all()
+
"""word_size = 6
filters = {}
filters['retrieved_date__gt'] = datetime.now() - timedelta(weeks=10)
@@ -36,9 +40,7 @@ def profile_public(nickname=None):
top_words = misc_utils.top_words(articles, n=50, size=int(word_size))
tag_cloud = misc_utils.tag_cloud(top_words)"""
- return render_template('profile_public.html',
- user=user,
- feeds=user.feeds)
+ return render_template('profile_public.html', user=user, feeds=feeds)
@user_bp.route('/management', methods=['GET', 'POST'])
bgstack15