Skip to content
Open
4 changes: 4 additions & 0 deletions backend/data/blooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def get_blooms_for_user(
blooms = []
for row in rows:
bloom_id, sender_username, content, timestamp = row
if len(content) > 280:
continue
blooms.append(
Bloom(
id=bloom_id,
Expand Down Expand Up @@ -122,6 +124,8 @@ def get_blooms_with_hashtag(
blooms = []
for row in rows:
bloom_id, sender_username, content, timestamp = row
if len(content) > 280:
continue
blooms.append(
Bloom(
id=bloom_id,
Expand Down
1 change: 1 addition & 0 deletions front-end/components/bloom-form.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async function handleBloomSubmit(event) {
const textarea = form.querySelector("textarea");
const content = textarea.value.trim();


try {
// Make form inert while we call the back end
form.inert = true;
Expand Down