You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- If the content is NOT actually trying to announce or describe a real-world event (e.g., a meme, personal photo dump, random advertisement, generic brand post with no time/place), DO NOT extract an event. Return an object with empty strings/nulls as specified below.
127
+
- If the content is inappropriate (nudity, explicit sexual content, or graphic violence), DO NOT extract an event. Return an object with empty strings/nulls as specified below.
128
+
- If there is no specific start time, DO NOT extract an event.
129
+
125
130
Do NOT extract events that only mention a date without a specific start time. Only include an event if a specific start time is mentioned in the caption or image.
126
131
127
132
Return ONE JSON object (not an array). The object must have ALL of the following fields:
- For all_day: true only if no specific time is mentioned.
159
164
- For tz mappings, default to "America/Toronto" for {school}.
160
165
- For rrule: only when recurring is mentioned; otherwise empty string.
166
+
- If the content violates the STRICT CONTENT POLICY or is not an event, set title to "" and leave the rest of the fields empty as per defaults below. Do not fabricate an event.
161
167
- If information is not available, use empty string for strings, null for price/coordinates, and false for booleans.
162
168
- Return ONLY the JSON object text, no extra commentary.
163
169
{f"- An image is provided at: {source_image_url}. If there are conflicts between caption and image information, prioritize the caption text."ifsource_image_urlelse""}
@@ -37,19 +38,23 @@ export function SubmitEventPage() {
37
38
38
39
constonSubmit=async(data: SubmissionFormData)=>{
39
40
try{
41
+
setErrorMsg(null);
40
42
submitEvent(data,{
41
43
onSuccess: ()=>{
42
44
setSuccess(true);
45
+
setErrorMsg(null);
43
46
reset();
44
47
setPreview(null);
45
48
setTimeout(()=>setSuccess(false),5000);
46
49
},
47
50
onError: (error)=>{
48
-
console.error('Submission error:',error);
51
+
constmsg=errorinstanceofError&&error.message ? error.message : 'We could not process this submission. Please ensure it clearly describes an event with a specific start time and is appropriate.';
0 commit comments