webXMPP

Check-in [85559f8e8c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Support gif, too
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | master | trunk
Files: files | file ages | folders
SHA3-256:85559f8e8ca271691f37e856dddb1cb2907e88adc0780a58282c9c291d788c26
User & Date: web 2019-05-21 15:33:41
Context
2019-08-24
22:28
By using a system app name, I get blinking light, notification popup, sound, and longevity on the notification list "for free". check-in: dd70b2d995 user: vandys tags: master, trunk
2019-05-21
15:33
Support gif, too check-in: 85559f8e8c user: web tags: master, trunk
2019-05-05
03:11
Play "battlin' LED's" with the system, and always do a full setup on the LED's before setting them blinking. Finish logic to recognize our own typing on another device, and don't make noise or blink an LED for it. check-in: f95204b778 user: vandys tags: master, trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to post.py.

130
131
132
133
134
135
136


137
138
139
140
141
142
143
	if self.filtered(mf):
	    sys.stderr.write(" filtered\n")
	    return True,self.send_result("", "text/html")

	# Usable format?
	if mftyp == "image/jpeg":
	    mfext = ".jpg"


	else:
	    sys.stderr.write(" reject format %s\n" % (mftyp,))
	    return True,self.send_result("", "text/html")

	# Name based on when, storage in var/<recipient#>
	basename = str(time.time()) + mfext
	destdir = "var/" + mt







>
>







130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
	if self.filtered(mf):
	    sys.stderr.write(" filtered\n")
	    return True,self.send_result("", "text/html")

	# Usable format?
	if mftyp == "image/jpeg":
	    mfext = ".jpg"
	elif mftyp == "image/gif":
	    mfext = ".gif"
	else:
	    sys.stderr.write(" reject format %s\n" % (mftyp,))
	    return True,self.send_result("", "text/html")

	# Name based on when, storage in var/<recipient#>
	basename = str(time.time()) + mfext
	destdir = "var/" + mt