Pelle Nilsson
2e85ec653f
Make SMTP connections thread safe
2018-02-18 16:48:08 +01:00
Pelle Nilsson
107b9be003
Add notification column to database if needed
2018-02-18 14:00:18 +01:00
Pelle Nilsson
c30873e8a2
Merge remote-tracking branch 'tsileo/reply_notification' into reply_notification
...
Conflicts:
isso/css/isso.scss
isso/db/comments.py
isso/ext/notifications.py
isso/js/app/i18n/fr.js
isso/js/app/isso.js
isso/js/app/text/postbox.html
isso/views/comments.py
2018-02-18 13:58:33 +01:00
cclauss
7f55c81e08
autopep8 the code and then flake8
2018-02-08 22:46:14 +01:00
Jelmer Vernooij
2cc564eeca
Merge pull request #380 from cclauss/drop-support-for-python-2.6-and-3.3
...
Drop support for python 2.6 and 3.3
2018-01-31 12:42:41 +00:00
Martin Schenck
6ccebce041
Improved German translation
2018-01-28 19:52:46 +01:00
cclauss
b569b19a7f
compat.py passes pyflakes test
...
Drop support for Python 2.6 and 3.3
2018-01-25 15:03:12 +01:00
Benoît Latinier
2b56963f31
fix pyflakes error, make travis happy
2018-01-20 23:03:08 +01:00
Benoît Latinier
d2b573a4d5
Merge pull request #256 from blatinier/issue-10/admin-interface
...
Add a basic admin interface (Fix issue #10 )
There are more to add in the interface but it's a good start.
2017-11-27 22:55:53 +01:00
Jelmer Vernooij
ea3507910f
Merge pull request #354 from mpchadwick/feature/comment-placeholder-color
...
Darken placeholder text
2017-11-22 22:11:56 +00:00
Max Chadwick
3efe0c86d9
Put hu into correct alphabetical order
2017-11-21 21:34:06 -05:00
Max Chadwick
be26948fff
Use <label>s rather than placeholders
2017-11-21 21:03:00 -05:00
Max Chadwick
9ab23c0908
Fix hungarian translation
2017-11-21 20:50:14 -05:00
Max Chadwick
21983a61b6
Darken placeholder text
...
Previously color contrast was insufficient per WCAG AA
2017-11-20 22:15:09 -05:00
Peter Guthy
02eaffea21
Added hungarian translation
2017-10-31 13:47:49 +01:00
Martin Zimmermann
650c6cf126
Merge pull request #341 from macedigital/fix-identicon-hash-size
...
Fix: Truncate key-length when generating identicons
2017-08-17 11:27:59 +02:00
Martin Zimmermann
6a60f831b0
remove unused variable
2017-08-17 10:42:36 +02:00
Martin Zimmermann
9b0e3d29fe
revert incorrect removal of the internal server startup CLI
2017-08-17 10:37:28 +02:00
Matthias Adler
43623f349b
Fix: Truncate key-length when generating identicons
...
Hex-digits with character count above 17 cannot be safely converted to an Integer, see [MAX_SAFE_INTEGER](https://medium.com/the-node-js-collection/javascripts-number-type-8d59199db1b6#53cd ).
Therefore, when long keys (e.g. 32 characters) are passed into `generateIdenticon()`, and the modulus of 2^18 is performed, the result is 0 all the time. This means, the identicon will render as an empty svg image.
Here is a proof-of-concept (run in any modern browser):
```js
const key = '841b625dcf75413ff3ed5137a81ff1c3';
const int = parseInt(key, 16);
const hash = int % Math.pow(2, 18);
// throws, due to floating point conversion / integer overflow
console.assert(258499 === hash, "Modulus for 'hash' should be != 0");
const int2 = parseInt(key.substr(-16), 16);
const hash2 = int2 % Math.pow(2, 18);
// works as expected
console.assert(258048 === hash2, "Modulus 'hash2' should be != 0");
```
Truncating the passed in argument to a maximum of 16 characters solves the issue.
As a sidenote, the same code in Python will work correctly:
```python
key = '841b625dcf75413ff3ed5137a81ff1c3'
int = int(key, 16)
hash = int % pow(2, 18)
assert 258499 == hash
```
2017-08-06 17:06:20 +02:00
Martin Zimmermann
c72946dc14
Run travis tests with python 3.5 & python 3.6
2017-07-30 22:38:12 +02:00
Martin Zimmermann
e3a8d0b93d
fix db test with incorrect SQL id, that happened work with pre-3.6 dicts before
2017-07-30 22:22:52 +02:00
Jelmer Vernooij
39debdb011
Fix flakes errors.
2017-07-29 13:06:40 +00:00
Jelmer Vernooij
8c33a84dd3
Merge pull request #253 from jGleitz/apidoc
...
Update API documentation.
2017-07-23 21:46:43 +00:00
Shengbin Meng
2f7d6aa09b
Merge branch 'master' into patch-1
2017-07-21 11:44:26 +08:00
Jelmer Vernooij
71bda25568
Merge pull request #312 from pellenilsson/fix-require-email
...
Fix require-email setting
2017-07-17 21:03:56 +00:00
Jelmer Vernooij
c8e4e74514
Merge pull request #335 from philipcmonk/time
...
Display only complete units of time
2017-07-17 20:51:47 +00:00
Jelmer Vernooij
afbcb6413e
Add da entry to i18n.js.
2017-07-17 20:49:56 +00:00
Jelmer Vernooij
6006cd9e82
Merge Danish translation from https://github.com/MadsRC/isso
2017-07-17 20:47:58 +00:00
Philip Monk
26f0e06e78
display only complete units of time
...
fixes #283
2017-07-15 18:20:02 -07:00
Jelmer Vernooij
616c61ea88
Merge pull request #291 from ivegotasthma/ivegotasthma-patch-1
...
fix: add missing i18n entry
2017-07-15 16:45:53 +00:00
Jeremy Tan
b14b1b51a9
validate->activate
2017-04-23 13:45:25 +02:00
Benoît Latinier
84381f4f48
add: link to the thread
2017-04-23 13:45:25 +02:00
Benoît Latinier
2adb779fef
add: edit author/email/website/message
2017-04-23 13:45:25 +02:00
Benoît Latinier
e3fddf4ae8
add: orders in administration
2017-04-23 13:45:24 +02:00
Benoît Latinier
3212bf762f
fix 500 error on pagination
2017-04-23 13:45:24 +02:00
Benoît Latinier
0b6a0e4d5f
add: group by thread
2017-04-23 13:45:24 +02:00
Benoît Latinier
1516f56cbd
fix: cursor pointer on links delete/validate
2017-04-23 13:45:24 +02:00
Benoît Latinier
7a79746f73
add: show author email
2017-04-23 13:45:24 +02:00
Benoît Latinier
0a93c866ff
Add a basic admin interface (Fix issue #10 )
...
Add a basic admin interface (Fix issue #10 )
wip again
still wip
fix login page
2017-04-23 13:45:24 +02:00
benjhess
e9eebf58e3
Refactored comments unittest to work with optional gravatar feature
2017-04-02 19:48:36 +00:00
benjhess
cbd4d90cb7
Added optional gravatar support
2017-04-02 21:13:06 +02:00
Shengbin Meng
a9500e29dd
Add language "zh" as alias of "zh_CN"
2017-03-28 21:56:07 +08:00
Shengbin Meng
4b7a32afac
Make the Chinese translations actually work
...
Before this change, the user must configure `lang="zh"` to use the CN version (neither `lang="zh_CN"` nor `lang="zh_TW"` works).
2017-03-28 21:35:51 +08:00
Pelle Nilsson
45a481daeb
Fix require-email setting, #308
2017-03-19 18:42:03 +01:00
Morris Jobke
f33ca31320
Highlight links by underline in comments
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
2017-02-02 11:35:38 -06:00
Mads R. Havmand
cd460ef152
Danish translation
2017-01-07 19:02:00 +01:00
ivegotasthma
09b69feae9
fix: add missing i18n entry
...
Fixes an indexing error a user gets when he tries to make the language of isso to `bg`
2016-12-17 22:42:07 +01:00
Martin Zimmermann
5e7f010241
add persian to i18n
2016-10-12 09:32:59 +02:00
Aidin Gharibnavaz
5bd7de084f
Adding Persian translation.
2016-10-07 19:56:19 +03:30
Martin Zimmermann
eeb091974d
add bulgarian translation to i18n.js, #272
2016-09-20 22:16:00 +02:00
Martin Zimmermann
2542acfca8
remove duplicated werkzeug compat middleware
...
A typo that always chained the legacy middleware although not necessary.
This causes errors with certain configurations (gevent + ???).
2016-09-20 22:00:58 +02:00
Martin Zimmermann
4fc6d5ac33
Merge pull request #263 from gumblex/master
...
fix "optional" in zh translations
2016-09-20 21:49:25 +02:00
Martin Zimmermann
a52a0862a8
Merge pull request #260 from panta82/vote-levels
...
Vote levels
2016-09-20 21:49:04 +02:00
Liping Wang
12d85242dc
correct offset localtime for comments ago
2016-08-29 18:52:00 +08:00
Dingyuan Wang
c83346834e
fix "optional" in zh translations
2016-07-24 13:23:44 +08:00
Martin Zimmermann
689f3b906c
Merge remote-tracking branch 'tska/finnish'
2016-07-16 14:22:26 +02:00
Timo Kankare
75371bdd43
Ordered fi after en.
2016-07-16 15:19:02 +03:00
Ivan Pantic
4972433406
Vote levels features (custom classes based on the comment votes)
2016-07-16 04:35:54 +02:00
Ivan Pantic
b0f8606b0f
Hiding zero votes is now done through CSS instead of javascript.
2016-07-16 03:54:02 +02:00
Ivan Pantic
b620f2c0b0
Bug when content is number 0.
2016-07-16 03:46:37 +02:00
Timo Kankare
14962ad51f
Added fi to i18.n.js.
2016-07-15 10:07:26 +03:00
Timo Kankare
cf20bc5687
Finnish translation. i18n/fi.js added.
2016-07-15 09:41:05 +03:00
Martin Zimmermann
46b2874b3d
Merge pull request #252 from blatinier/issue-27/data-attr-overide
...
Fix issue #27 on override thread discovery with custom data-attributes
2016-07-13 21:06:06 +02:00
Martin Zimmermann
bbff002bd6
Merge pull request #254 from jGleitz/preview
...
Preview endpoint
2016-07-13 21:04:35 +02:00
Benoît Latinier
459611c0e7
Add an option for mandatory author (Fix issue #124 )
2016-07-05 17:28:03 +02:00
Joshua Gleitze
3c9bbda252
preview endpoint
2016-06-03 20:32:39 +02:00
Joshua Gleitze
2a11c000d4
convert bad tabs to spaces
2016-06-03 20:04:58 +02:00
Joshua Gleitze
8a9fe29bce
apidoc for count
2016-06-03 14:20:36 +02:00
Joshua Gleitze
afd4107ac3
apidoc for like & dislike
2016-06-03 14:09:16 +02:00
Joshua Gleitze
ded4927ae4
apidoc for moderate
2016-06-03 14:08:57 +02:00
Joshua Gleitze
c3439e5c79
apidoc for "delete comment"
2016-06-03 11:06:46 +02:00
Joshua Gleitze
9b79a98851
apidoc for "edit comment"
2016-06-03 11:06:31 +02:00
Joshua Gleitze
1f804bcf8e
apidoc for "view comment"
2016-06-03 10:28:51 +02:00
Joshua Gleitze
b2d9c80b5f
apidoc for "new comment"
2016-06-03 10:13:13 +02:00
Joshua Gleitze
5ca5d680fa
apidoc for fetch
2016-06-03 10:12:54 +02:00
Benoît Latinier
f1325ccaca
Fix issue #27 on override thread discovery with custom data-attributes
2016-06-01 23:02:46 +02:00
Martin Zimmermann
0377c8bb20
fix reponse for OPTIONS response on Python 3, #242
2016-04-12 21:15:22 +02:00
Martin Zimmermann
2612fbc0f5
fix missing wrapper attribute
2016-04-12 21:15:22 +02:00
Sergey Lisakov
2a6aa1203b
Fix pluralisation issues and inexact translation
...
Noticed inexact translation for comment-hidden and no-comments.
Pluralisation had bugs, now it works correctly.
2016-03-25 16:26:47 +01:00
Martin Zimmermann
3cd475ec31
follow redirects, fix #193
2016-02-24 13:14:32 +01:00
Martin Zimmermann
a3a1d8cb86
fix getAttribute return value
2016-02-21 18:55:38 +01:00
Martin Zimmermann
3e309e0850
fix input field value access
2016-02-06 20:02:51 +01:00
smileboy
b48ac000b1
config.js error.
2016-01-30 12:31:58 +01:00
Martin Zimmermann
57f902acd4
actually include isso/defaults.ini
2016-01-09 01:01:39 +01:00
Martin Zimmermann
622b59f8a4
move default config expansion to function body (default
already exists)
2016-01-09 00:33:07 +01:00
Martin Zimmermann
93e783ed60
symlink share/isso.conf to isso/defaults.ini and include it properly
2016-01-09 00:15:04 +01:00
Martin Zimmermann
8579cbd6f8
fix undefined variable usage and enumeration logic
2016-01-08 23:03:18 +01:00
Martin Zimmermann
00ed48a1d3
fix incorrect define header
2016-01-08 22:56:45 +01:00
Martin Zimmermann
1f86fa897e
add vi (vietnamese) translation, #222
2016-01-08 22:47:13 +01:00
Martin Zimmermann
dd9ebdc46b
Merge remote-tracking branch 'origin/pr/222'
2016-01-08 22:42:15 +01:00
Martin Zimmermann
815c7f54b5
add hr (croatian) translation
2016-01-08 22:40:56 +01:00
Martin Zimmermann
dc1d83b74b
add cs (czech) translation
2016-01-08 21:32:16 +01:00
Martin Zimmermann
2e41c4728a
don't extend native objects, #191
2016-01-08 17:14:30 +01:00
Đinh Xuân Sâm
5ce7084f59
Fix typo: s/trướ/trước
2016-01-01 10:55:12 +07:00
Đinh Xuân Sâm
f1a8aed320
Completed Vietnamese translation.
2016-01-01 10:50:31 +07:00
Đinh Xuân Sâm
17747368e1
Created new branch for translation: vietnamese.
...
Added Vietnamese translation.
2016-01-01 10:48:36 +07:00
Martin Zimmermann
33c02b45b4
Merge remote-tracking branch 'origin/pr/202'
2015-11-08 17:39:04 +01:00
Martin Zimmermann
54952e67ad
Merge remote-tracking branch 'origin/pr/199'
2015-11-08 17:39:01 +01:00
Sergey Lisakov
45c4e43ba2
Update ru.js
2015-10-27 22:55:59 +01:00
Sergey Lisakov
11dff33450
Update ru.js
2015-09-18 13:15:59 +02:00
Sergey Lisakov
ed0f680e97
Update Russian translation
...
Pluralization will work just fine now with Russian. Also I corrected several typos and added translation for missed "comment-hidden". I installed Isso via pip and have this part of code in other files.
2015-09-15 17:27:03 +02:00
Nick Hu
b9ce411f85
write unit tests for require-email
2015-08-28 16:17:02 +01:00
Nick Hu
cb21af4cc5
Add config for requiring emails
2015-08-28 15:59:48 +01:00
Mushiyo
2af17b6204
corrected punctuation
2015-08-14 10:35:00 +08:00
Mushiyo
19179b1764
modify to a better translation
2015-08-14 10:22:09 +08:00
Mushiyo
b98133836d
Added zh_TW translation
2015-08-13 23:22:46 +08:00
Martin Zimmermann
8018a7e23d
update russian translation
2015-05-17 23:45:16 +02:00
wendal
6e4d9ba446
add: zh_CN Translation
2015-04-07 10:47:04 +08:00
Julien Enselme
6973128eac
Correct auth without password or username.
...
If no username is set, returns an empty string. So the test `username is
not None` is always True. Idem for password. This can lead to
authentication problems. This commit fixes the test to `if username and
password` as it was in the previous version.
2015-03-07 16:00:28 +01:00
Martin Zimmermann
630e76f66c
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
isso/ext/notifications.py
isso/utils/http.py
setup.py
2015-03-04 22:13:03 +01:00
Martin Zimmermann
f5566c1325
encode username/password in SMTP auth only for Python 2, fix #146
2015-03-04 21:44:39 +01:00
Martin Zimmermann
596acb7f79
request with User-Agent 'Isso/...', #151
2015-03-04 21:33:01 +01:00
Sergey
56c81c2d06
Update ru.js
2015-03-04 21:10:42 +01:00
Martin Zimmermann
45053f9c0c
catch errors in http response
2015-03-04 21:09:28 +01:00
Martin Zimmermann
8e4db5a7a2
typo
2015-02-25 10:57:55 +01:00
Martin Zimmermann
f681002e7e
add support for html5lib below 0.95, #168
2015-02-25 10:48:11 +01:00
Martin Zimmermann
c3c519ad0e
add compatibility middleware for werkzeug 0.8, #170
2015-02-25 10:37:51 +01:00
Martin Zimmermann
e5219157a7
Merge pull request #172 from xuhdev/fix-159-2
...
Save the session-key as a unicode string in the db
2015-02-25 10:11:34 +01:00
Hong Xu
21e91efbf9
Save the session-key as a unicode string in the db
...
The session-key should be saved as a string, not a byte string.
2015-02-25 00:21:55 -08:00
Martin Zimmermann
957fc72eb1
reject request if reject is actually defined, fix #165
2015-02-24 21:37:57 +01:00
Martin Zimmermann
0466977109
replace bullet with HTML entity, fix #169
2015-02-24 21:34:05 +01:00
Martin Zimmermann
aa64b27684
Python 2.7.9 didn't get the context=ssl... backport unfortunately
2015-02-24 20:56:20 +01:00
Martin Zimmermann
e3dedef7ed
Merge pull request #167 from albohlabs/feature/ansible
...
Add ansible for provisioning
2015-02-19 22:32:03 +01:00
Martin Zimmermann
4c9a2aba30
fetch polish translation
2015-02-19 18:56:27 +01:00
Daniel Gräber
894086bda2
Fix catch socket timeout and error exceptions
2015-02-19 13:38:48 +01:00
Roland Szabo
2a3075d0fb
Catch exception in anonymize function
2015-02-01 17:30:35 +01:00
Martin Zimmermann
26b889d381
Merge remote-tracking branch 'origin/pr/157'
...
Conflicts:
isso/js/app/i18n.js
2015-01-30 15:43:02 +01:00
Matias
c5496b103d
Added spanish translation
...
Added spanish translation
2015-01-29 02:59:52 -03:00
Matias
4d7fc956ab
Create es.js
...
Added spanish translation
2015-01-29 02:53:53 -03:00
Martin Zimmermann
e271851b50
fetch greek translation
2015-01-28 23:14:21 +01:00
Jelmer Vernooij
00c4d4149e
Import transifex improvements to Dutch translation.
2015-01-21 23:46:50 +01:00
Jelmer Vernooij
dcb7f6457c
Add Dutch translations.
2015-01-17 21:54:01 +01:00
Richard Fine
6ac5e8c6d0
Reverted change to demo file; changed web server config to mount the uWSGI app at the root, as it turns out it's capable of serving the demo file itself
2015-01-03 13:07:41 +00:00
Richard Fine
3977a8d00d
set up Vagrant support to make it easy to get a dev environment going quickly
2015-01-03 02:00:04 +00:00
Martin Zimmermann
f47df75422
use system's CA certificates for Python 2.7.9 or higher to verify TLS connection
2014-12-25 22:49:28 +01:00
Martin Zimmermann
d70eb160b9
Merge branch 'legacy/0.9'
...
Conflicts:
isso/migrate.py
2014-12-25 21:53:31 +01:00
Martin Zimmermann
d6602b7fe4
Merge branch 'pr/143'
2014-12-25 21:28:26 +01:00
Martin Zimmermann
7f5ff457c1
integrate swedish translation into Isso
2014-12-25 21:28:15 +01:00
Martin Zimmermann
b45f39e662
resolve when comment is in moderation queue, too
2014-12-25 21:08:10 +01:00
Théo Zimmermann
bba91b3f93
don't lose comment if it failed to create
2014-12-19 15:19:55 +01:00
Gustav Näslund
da47dbd374
Added swedish translation file
2014-12-13 14:29:40 +01:00
Martin Zimmermann
4b97684e22
fix editing when avatars are disabled
2014-11-26 00:06:54 +01:00
Martin Zimmermann
89d6ea076b
add --empty-id flag to import weird Disqus exports, fixes #135
2014-11-25 22:59:05 +01:00
Martin Zimmermann
928198f340
update translations
2014-11-16 14:27:42 +01:00
Théo Zimmermann
97015d4034
correct order by in sql request
2014-11-13 13:56:40 +01:00
Martin Zimmermann
4b64615f92
set encoding to UTF-8 for Disqus and WordPress import, also fixes #93
2014-11-12 22:34:07 +01:00
Martin Zimmermann
f0a0f40223
add fallback localStorage implementation if not functional, #134
2014-11-09 22:13:26 +01:00
Martin Zimmermann
d469324392
fix 'undefined name 'buffer'' on Python 3.x
2014-11-09 21:17:36 +01:00
Théo Zimmermann
d0a0ac39b0
bug fixed: was trying to remove an unexisting span.votes
2014-10-17 09:24:53 +02:00
Martin Zimmermann
74363d44ba
Merge branch 'legacy/0.9'
...
Conflicts:
CHANGES.rst
isso/core.py
setup.py
2014-10-08 18:06:56 +02:00