Commit Graph

111 Commits

Author SHA1 Message Date
nitely
74b11f14aa regex \d -> [0-9] 2018-02-23 17:22:31 -03:00
nitely
f06f2118c5 fix "no module named magic" error 2018-01-31 04:09:01 -03:00
cryptogun
9a4064ac28 Add str ' @someone ' if REPLY clicked. (#212)
1. Implements #156.1
2018-01-30 14:08:05 -03:00
cryptogun
ff5c9fe3bb Fix #154. Bind actual func to the button. (#217)
* Fix #154. Bind actual func to the button.
2018-01-30 14:03:19 -03:00
nitely
a288ae2dea compile locales 2018-01-30 13:33:01 -03:00
nitely
540f5ce5ae update locales 2018-01-30 13:27:49 -03:00
nitely
079be70254 recompile all locales 2018-01-30 12:32:27 -03:00
nitely
2061dab63a recompile all locales 2018-01-30 12:20:35 -03:00
andrea
629ea8c162 italian translation (#147) 2018-01-30 12:08:05 -03:00
nitely
3cb1a31f5c remove untranslated locales 2018-01-30 11:53:00 -03:00
nitely
d087928887 add Lithuanian locale 2018-01-30 11:35:57 -03:00
nitely
0550f61cde pull, update and compile locales 2018-01-30 11:24:25 -03:00
Esteban Castro Borsani
018aada259
html noopener (#221) 2017-11-13 09:28:04 -03:00
cryptogun
446adee597 Fix #155. Track untranslated str. (#218) 2017-11-04 09:28:20 -03:00
nitely
94d7b2975b comment.form logger.exception -> logger.error 2017-10-10 13:55:17 -03:00
nitely
eee18b2b81 fix typo 2017-10-04 23:59:50 -03:00
Esteban Castro Borsani
73b73e8a9e make libmagic optional (#201) 2017-09-25 04:34:57 -03:00
Esteban Castro Borsani
43a4d800bc check image extension (#198) 2017-09-25 02:27:35 -03:00
Esteban Castro Borsani
6dc6c87a04 Feature/install (#193)
* add yarn

* spirit startproject command

* readme usage

* remove example from travis

* readme run tests

* exit instead of raise

* remove yarn.lock

* core.conf settings

* django.conf.settings -> core.conf.settings everywhere

* editorconfig makefiles

* docs

* core.conf.defaults docs

* installation docs

* upgrade docs

* update history

* spirit.settings deprecation warning

* update readme
2017-09-24 12:38:54 -03:00
Esteban Castro Borsani
c2f9ed3a49 Feature/upload files optional (#196)
* comment.forms pass tmp file to magic

* core.tags settings

* make comment upload image/file optional

* gitignore update

* delete manage

* gitignore update

* delete manage

* generic editor upload

* editor pass image extensions

* fix coffee tests

* bookmark coffee lil refactor

* update js deps

* rename test

* comment.forms change file name format from hash.file.ext -> file_hash.ext

* add @rkenmi to authors

* update history
2017-09-21 13:47:10 -03:00
Rick Miyamoto
ca4b5e047f File upload (#194)
* add form, view, url route

* couple tests for file upload

* file upload coffee, editor update

* coffee-spec jasmine tests

* rename ST_ALLOWED_UPLOAD_FILE_FORMAT, pass to contexts

* import magic, update validations and file upload tests

* allowedFileMedia array as passable option to EditorFileUpload

* cleanup; simple_tag for file media types, update magic validation

* add logging, change ValidationError text
2017-09-21 04:35:51 -03:00
Ales Kocjancic
294750ce8d support alternate file storage backends for comment images (#162) 2017-01-30 05:55:11 -03:00
Robert Kolner
32d7f0832b Support for Django 1.9 (#137)
* Bump versions of django and django-haystack in requirements.txt

* Update django-djconfig to django-1.9-compatible version

* Changed the old style usage of get_model to new django.apps

This change is backward-compatible to django-1.7.

* Do not autoescape rendered template contexts in tests

A change in django
(django/django@19a5f6da32) caused all
rendered templates to be autoescaped by default, which broke some
of the tests by escaping ampersands in rendered urls.

* Remove Python 3.3 from .travis.yml

Django 1.8 is the last one to support Python 3.3.
2016-11-13 21:36:42 -03:00
nitely
0948bf7ea8 comment.tests override media_root for cleanup 2016-06-07 04:55:17 -03:00
Esteban Castro Borsani
245bdb7eb7 Feature/emojis 93 (#126)
* utils.markdown emoji names list

* static.stylesheets emojis

* static.emojis emojiOne pack

* static.scripts emoji_list

* comment.template editor emoji replace -> split&join
2016-06-07 06:38:04 +02:00
Esteban Castro Borsani
b133430866 Feature/rate limit on valid post only 58 (#124)
* core.rate_limit make is_limited a callable

* core.rate_limit refactor

* core.rate_limit fix random tests fails due to rate_limit.fixed_window

* topic do not rate-limit on form error
2016-06-04 15:32:32 +02:00
Esteban Castro Borsani
ac86cef6c7 Feature/anti double post (#118)
* comment anti double post initial

* user migration

* anti-double-post for topics

* core.utils.get_hash -> get_file_hash

* anti-double-post for private topics

* tests

* tests cache.clear -> utils.cache_clear()
2016-05-28 20:21:57 +02:00
Esteban Castro Borsani
2340242d43 Feature/rate limit own cache 120 (#121)
* core.ratelimit validate cache config

* tests clear all caches

* settings set ST_RATELIMIT_CACHE to spirit_rl_cache

* core.utils deprecations

* tests deprecations

* core.ratelimit get_fixed window depreaction warning when period is 0

* core.ratelimit tests

* topic.private renamed test
2016-05-20 01:41:22 +02:00
nitely
16e7cbfa86 comment.forms ST_COMMENT_MAX_LEN #107 2016-03-15 17:41:21 -03:00
nitely
6fdaaa3eb1 core.markdown sanitize_url 2016-02-27 02:18:58 -03:00
nitely
65fc34966e fixes tets for postgresql 2016-02-22 00:00:58 -03:00
Esteban Castro Borsani
d93ab3c7e2 Revert "added comment, topic and likes counts to profile page" 2016-02-21 23:38:47 -03:00
Ales Kocjancic
eacf458e64 added comment, topic and likes counts to profile page
- track number of given and received likes when liking/unliking
- update comment and topic counts with post_save/post_delete signal
- data migration to update existing profiles
- includes tests
2015-12-06 15:27:32 +01:00
nitely
2334ad5143 locales update 2015-11-23 17:15:34 -03:00
nitely
6ee3ce10ea comment.migration re-render all comments 2015-11-23 10:21:35 -03:00
nitely
a13947cc0a markdown nofollow 2015-11-21 18:47:50 -03:00
nitely
c573ed5b69 markdown css emojis 2015-11-14 23:14:57 -03:00
nitely
9d91af9904 comment fix template editor 2015-11-12 13:30:07 -03:00
nitely
4da1f098b6 comment.history html diff 2015-11-12 12:15:42 -03:00
nitely
bcbd6eb120 topic bookmark redirect to unread comment 2015-11-12 11:17:10 -03:00
nitely
53e86f6fc7 locales update 2015-10-25 23:18:51 -03:00
nitely
f6ac3aacf7 core.management commands & tx locale updates
* spiritmakelocales
* spirittxpull
* spirittx
* locale updates from transifex
2015-10-14 18:10:08 -03:00
nitely
df401bad1b messages coffee 2015-10-13 21:24:12 -03:00
nitely
bc8597db71 locales update & blocktrans trimmed 2015-10-10 22:56:39 -03:00
nitely
56626f9b51 comment.poll auto_id uniqueness 2015-10-09 00:13:55 -03:00
nitely
c6623362f3 comment.poll template safe 2015-10-08 23:10:42 -03:00
nitely
0bccc4fbcf comment.poll template form 2015-10-08 22:53:05 -03:00
nitely
589daec98c comment.poll voter template user url 2015-10-08 21:59:35 -03:00
nitely
87fcf060d8 comment.poll performance 2015-10-08 20:00:24 -03:00
nitely
ce6a0608bc comment.poll next tests 2015-10-07 22:56:54 -03:00