diasporadiaries

a platform for writing stories with personal accounts and messages
git clone git://parazyd.org/diasporadiaries.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4c341244f5427e9faeaf72764839aa3001778775
parent fa02b7e45ccc2d175555fdbae9b00cc7ffca2a42
Author: parazyd <parazyd@dyne.org>
Date:   Tue, 22 Jan 2019 16:25:43 +0100

Don't render fail on /profile when there are no visible stories.

Diffstat:
Mdiaspora.py | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/diaspora.py b/diaspora.py @@ -333,8 +333,9 @@ def profile(): if stories: name = stories[0]['name'] return render_template('profile.html', stories=stories, - name=name, uid=uid) - return render_template('fail.html', msg='No stories listed.') + name=name, uid=uid, profiles={}) + return render_template('profile.html', stories=[], name='Someone', + uid=uid, profiles={}) return render_template('fail.html', msg='No such profile.')