Martin Zimmermann
850b2b4bfb
set mode to 4 (deleted) when isDeleted is true
11 years ago
Martin Zimmermann
8c0af3b10f
show orphan comments after Disqus import (if any)
...
An orphan comment is exported by Disqus but its thread id is
non-existent (probably deleted, moved). Usually from the earlier
days (or WordPress migration).
It is not possible to get the thread without manual intervention (
aka SQLite insertions).
11 years ago
Martin Zimmermann
29170ac258
install ipaddr for python2, appendum to #32
11 years ago
Martin Zimmermann
80aaf15128
Merge remote-tracking branch 'origin/pr/32'
11 years ago
Federico Ceratto
68be70af24
Support Python2 ipaddr library.
11 years ago
Martin Zimmermann
a442b8e0ee
remove dead code
11 years ago
Martin Zimmermann
ab5d907172
move comments.requires to views package
11 years ago
Martin Zimmermann
1174259b27
mv comment -> comments
11 years ago
Martin Zimmermann
18d7f37878
typo
11 years ago
Martin Zimmermann
ac8d987392
don't monkeypatch if uwsgi is available
11 years ago
Martin Zimmermann
616ec57de2
Merge branch 'feature/data-configuration'
11 years ago
Martin Zimmermann
6f3a2d8072
add an option to prevent Isso from appending the default CSS, closes #29
11 years ago
Martin Zimmermann
c06c11aeca
api.js parses custom data attributes for client configuration, part of #29
...
All data-attributes beginning with `data-isso-` are stored in
`api.config` (without leading data-isso-). Isso tries to parse
the values with JSON (e.g. `-isso-foo="false"` returns false)
and falls back for a simple string value.
11 years ago
Martin Zimmermann
4bb6e91f61
Isso can now listen on unix domain sockets, closes #25
...
This also changes the server configuration from `host` and `port`
to `listen = http://localhost:8080 `.
11 years ago
Martin Zimmermann
6374d8a9e1
fix application profiling
11 years ago
Martin Zimmermann
0a247a7927
data-isso-prefix is now ony data-isso
11 years ago
Martin Zimmermann
6d9f43939a
Back to development: 0.5
11 years ago
Martin Zimmermann
5431dd0f0b
Preparing release 0.4
11 years ago
Martin Zimmermann
33fb15e241
rename data-prefix to data-isso
11 years ago
Martin Zimmermann
af6695e935
lowercase MiddleWare and fix TypeError in Headers
11 years ago
Martin Zimmermann
1e3245098b
change license to MIT setup.py
11 years ago
Martin Zimmermann
4950e7dd4d
add unittest for CORS headers
11 years ago
Martin Zimmermann
aa6665c8f0
fix endpoint detection when using require.js
11 years ago
Martin Zimmermann
8d1171df29
improve request decoding and json parsing
11 years ago
Martin Zimmermann
6691810316
handle cross-origin cookies with a custom header X-Set-Cookie, fix #24
...
Cookies set from a different domain can not be read by JS executed in
the current domain. As a workaround, Isso sends both a Set-Cookie and
X-Set-Cookie header. The former is used by the browser to make the
HTTP request to the API, the latter is read by `embed.min.js` to
determine if a comment can be edited or deleted.
When a comment is deleted, the server sends an expired cookies in
Set-Cookie and X-Set-Cookie.
11 years ago
Martin Zimmermann
05c8b571e2
requirejs-text now uses CORS XHR requests to static files
11 years ago
Martin Zimmermann
6126f0ec6f
add CORS middleware to add CORS header to *all* requests
11 years ago
Martin Zimmermann
e3fc33fec4
add backport for werkzeug 0.8 to test matrix
11 years ago
Martin Zimmermann
e14a04ab6c
support for werkzeug 0.8 (Python2-only)
11 years ago
Martin Zimmermann
312578457b
uwsgi can only cache bytes
11 years ago
Martin Zimmermann
cc2ac11850
inline CSS
11 years ago
Martin Zimmermann
d8a254c304
fix api endpoint detection
11 years ago
Martin Zimmermann
d59fc2ef8e
handle OPTIONS request and return CORS headers
11 years ago
Martin Zimmermann
fe63a76960
increase uWSGI's hash cache to 10240 items (=320kb)
11 years ago
Martin Zimmermann
c581e0f05a
cache email hash on comment creation
11 years ago
Martin Zimmermann
c567758d81
limit email length to 254 to avoid hash-DDoS
11 years ago
Martin Zimmermann
0473afe2db
add profiling option to server configuration
11 years ago
Martin Zimmermann
3c193bef27
request remote_addr only when using the comment form
11 years ago
Martin Zimmermann
7e73986667
remove trailing slash from API endpoint, appendum to 8da9d0b
11 years ago
Martin Zimmermann
375b32a151
Merge branch 'feature/data-attributes'
11 years ago
Martin Zimmermann
8da9d0b13b
override API location with `data-prefix="..."`
11 years ago
Martin Zimmermann
0d07515c18
override HTML title parsing with a `data-title="...` attribute
...
If you don't use a <h1> to markup your post's title (but h2), it
is no longer possible to reliable detect the site's title.
E.g. you have a single page with only one <h1> and that's the
*real* title of that page. But on the other hand, it is also
possible, that the <h1> tag is just your website's name and the
actual post title is marked up in <h2>.
11 years ago
Martin Zimmermann
fa496669e2
use lowercase [smtp] as written in the docs
11 years ago
Martin Zimmermann
54413dfcf3
add copyright header to embed.js (and it's MIT not BSD)
11 years ago
Martin Zimmermann
46d5ccc38f
fix indentation
11 years ago
Martin Zimmermann
d4aff7a197
Back to development: 0.4
11 years ago
Martin Zimmermann
7a0ee11099
Preparing release 0.3
11 years ago
Martin Zimmermann
c5d52721c4
use cache.delete a) with an actual key and b) only on delete
11 years ago
Martin Zimmermann
b3b26c1117
mv isso.ini to uwsgi.ini
11 years ago
Martin Zimmermann
40c554265b
changelog for 0.3
11 years ago