Benoît Latinier
fb23f4079d
add: some docker config
6 years ago
cclauss
7f55c81e08
autopep8 the code and then flake8
6 years ago
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
6 years ago
Martin Schenck
6ccebce041
Improved German translation
6 years ago
cclauss
b569b19a7f
compat.py passes pyflakes test
...
Drop support for Python 2.6 and 3.3
6 years ago
Benoît Latinier
2b56963f31
fix pyflakes error, make travis happy
6 years ago
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.
7 years ago
Jelmer Vernooij
ea3507910f
Merge pull request #354 from mpchadwick/feature/comment-placeholder-color
...
Darken placeholder text
7 years ago
Max Chadwick
3efe0c86d9
Put hu into correct alphabetical order
7 years ago
Max Chadwick
9ab23c0908
Fix hungarian translation
7 years ago
Max Chadwick
21983a61b6
Darken placeholder text
...
Previously color contrast was insufficient per WCAG AA
7 years ago
Peter Guthy
02eaffea21
Added hungarian translation
7 years ago
Martin Zimmermann
650c6cf126
Merge pull request #341 from macedigital/fix-identicon-hash-size
...
Fix: Truncate key-length when generating identicons
7 years ago
Martin Zimmermann
6a60f831b0
remove unused variable
7 years ago
Martin Zimmermann
9b0e3d29fe
revert incorrect removal of the internal server startup CLI
7 years ago
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
```
7 years ago
Martin Zimmermann
c72946dc14
Run travis tests with python 3.5 & python 3.6
7 years ago
Martin Zimmermann
e3a8d0b93d
fix db test with incorrect SQL id, that happened work with pre-3.6 dicts before
7 years ago
Jelmer Vernooij
39debdb011
Fix flakes errors.
7 years ago
Jelmer Vernooij
8c33a84dd3
Merge pull request #253 from jGleitz/apidoc
...
Update API documentation.
7 years ago
Shengbin Meng
2f7d6aa09b
Merge branch 'master' into patch-1
7 years ago
Jelmer Vernooij
71bda25568
Merge pull request #312 from pellenilsson/fix-require-email
...
Fix require-email setting
7 years ago
Jelmer Vernooij
c8e4e74514
Merge pull request #335 from philipcmonk/time
...
Display only complete units of time
7 years ago
Jelmer Vernooij
afbcb6413e
Add da entry to i18n.js.
7 years ago
Jelmer Vernooij
6006cd9e82
Merge Danish translation from https://github.com/MadsRC/isso
7 years ago
Philip Monk
26f0e06e78
display only complete units of time
...
fixes #283
7 years ago
Jelmer Vernooij
616c61ea88
Merge pull request #291 from ivegotasthma/ivegotasthma-patch-1
...
fix: add missing i18n entry
7 years ago
Jeremy Tan
b14b1b51a9
validate->activate
7 years ago
Benoît Latinier
84381f4f48
add: link to the thread
7 years ago
Benoît Latinier
2adb779fef
add: edit author/email/website/message
7 years ago
Benoît Latinier
e3fddf4ae8
add: orders in administration
7 years ago
Benoît Latinier
3212bf762f
fix 500 error on pagination
7 years ago
Benoît Latinier
0b6a0e4d5f
add: group by thread
7 years ago
Benoît Latinier
1516f56cbd
fix: cursor pointer on links delete/validate
7 years ago
Benoît Latinier
7a79746f73
add: show author email
7 years ago
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
7 years ago
Shengbin Meng
a9500e29dd
Add language "zh" as alias of "zh_CN"
7 years ago
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).
7 years ago
Pelle Nilsson
45a481daeb
Fix require-email setting, #308
7 years ago
Morris Jobke
f33ca31320
Highlight links by underline in comments
...
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
7 years ago
Mads R. Havmand
cd460ef152
Danish translation
8 years ago
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`
8 years ago
Martin Zimmermann
5e7f010241
add persian to i18n
8 years ago
Aidin Gharibnavaz
5bd7de084f
Adding Persian translation.
8 years ago
Martin Zimmermann
eeb091974d
add bulgarian translation to i18n.js, #272
8 years ago
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 + ???).
8 years ago
Martin Zimmermann
4fc6d5ac33
Merge pull request #263 from gumblex/master
...
fix "optional" in zh translations
8 years ago
Martin Zimmermann
a52a0862a8
Merge pull request #260 from panta82/vote-levels
...
Vote levels
8 years ago
Liping Wang
12d85242dc
correct offset localtime for comments ago
8 years ago
Dingyuan Wang
c83346834e
fix "optional" in zh translations
8 years ago