password = bcrypt.hashpw(password.encode(), bcrypt.gensalt())
timestamp = datetime.now(timezone.utc).isoformat()
- user_data = query_db("insert into users (username, password, created, threadid) values (?, ?, ?, ?) returning userid", [username, password, timestamp, threadid], one=True)
+ user_data = query_db("insert into users (username, password, created) values (?, ?, ?) returning userid", [username, password, timestamp], one=True)
# Create profile comment thread
threadid = create_comment_thread(ThreadType.PROFILE, user_data["userid"])
one=True,
)
comment["playlistid"] = playlist["playlistid"]
- comment["title"] = playlist["title"]
+ comment["name"] = playlist["name"]
comment["content_userid"] = playlist["userid"]
comment["content_username"] = playlist["username"]
<a href="/song/{{ comment['content_userid'] }}/{{ comment['songid'] }}?action=view">{{ comment['title'] }}</a> -
{# Nothing to do for user profile #}
{% elif 'playlistid' in comment %}
- <a href="/playlists/{{ comment['playlistid'] }}?action=view">{{ comment['title'] }}</a> -
+ <a href="/playlists/{{ comment['playlistid'] }}?action=view">{{ comment['name'] }}</a> -
{% endif %}
<a href="/users/{{ comment['content_username'] }}" class="profile-link">{{ comment['content_username'] }}</a>
<div class="top-level-comment">
- Generalize nofications
- Userid in thread for owner? (to allow comment deletion)
- Fix: refresh -> navigate -> back shows pre-refresh page
+- Fix: http errors not shown for form submissions
- Player minimize button
- Break up main.py, test_offline.py
- Image support in comments, descriptions, bios, etc. (rich text?)