Commit Graph

165 Commits

Author SHA1 Message Date
rr- 658b95aad7 server/tools: fix note importing 2016-05-29 12:40:36 +02:00
rr- d7e46e23ab server/tools: don't copy avatars for --no-data 2016-05-29 12:40:36 +02:00
rr- 4d1f745e38 server/notes: fix note serialization 2016-05-29 12:40:36 +02:00
rr- 731c0442e9 server/search: change named token detection
In particular, treat tokens starting with : as anonymous tokens.
2016-05-24 10:29:14 +02:00
rr- af22ec735d server/posts: send mime type to client 2016-05-22 22:50:00 +02:00
rr- 77998f1660 server/tags: let mods set default category 2016-05-22 22:17:11 +02:00
rr- fa14bf714c server/tags: create snapshots for automatic tags 2016-05-22 22:17:11 +02:00
rr- 6a48020426 server/tags: fix sorting tag siblings 2016-05-22 22:17:11 +02:00
rr- cf3b97b8de server/tags: change response key
Since we're using "results" everywhere else, it makes little sense for
tag siblings to use "siblings" node.
2016-05-22 11:05:18 +02:00
rr- 16d4d3ca68 server/favorites: favoriting sets score to 1 2016-05-21 22:35:18 +02:00
rr- c88dfd228a server/images: replace pipes with temp files
ffmpeg's GIF demuxer needs the input stream to be seekable, which rules
pipes out.
2016-05-20 21:34:02 +02:00
rr- 205f372f76 server/tests: colorize verbose output 2016-05-11 23:47:50 +02:00
rr- 172b956e48 server/search: permit search for tags by alias 2016-05-11 23:47:50 +02:00
rr- 6179f016ae server/search: make searches case insensitive 2016-05-11 23:47:50 +02:00
rr- 82d32ba1fb server/tags: fix removing tags related to others 2016-05-11 23:47:50 +02:00
rr- 4cd5b8c1ac server/tags: fix tag category color validation
This was totally stupid...
2016-05-11 22:09:06 +02:00
rr- a5b2d835d6 server/tags: fix wrong case in merging requests 2016-05-11 18:42:56 +02:00
rr- 59ae0a4c9a server/db: maintain order of tag aliases
First alias has a special meaning in certain contexts, such as post
serialization, where only one alias is chosen to show to the client.
2016-05-11 18:32:53 +02:00
rr- 299055c427 server/tools: fix creating counters 2016-05-11 17:02:41 +02:00
rr- 03498b2d8e server/tags: add tag category color sanitization 2016-05-10 12:18:06 +02:00
rr- 14a20e55f8 server/tests: fix leftover rank strings 2016-05-10 12:15:33 +02:00
rr- ba3678dec1 server/posts: implement FLAG_MAP 2016-05-10 12:15:33 +02:00
rr- 4ec842024c server/users: implement RANK_MAP 2016-05-10 12:15:33 +02:00
rr- cecf620126 server/config: move config validation to app.py 2016-05-10 12:15:33 +02:00
rr- cd15cdff7a server/scores+favorites: merge duplicate code 2016-05-10 12:15:05 +02:00
rr- f140ae6176 server/tests: change test file name 2016-05-10 12:14:54 +02:00
rr- 174958686c server/general: disable pylint reports
They add no value whatsoever
2016-05-10 12:02:24 +02:00
rr- 3481c1072d server/general: fix a few pylint warnings 2016-05-10 12:02:24 +02:00
rr- 57297df9e1 server/tools: fix importing tag category with id=0 2016-05-10 10:05:47 +02:00
rr- b37979546f server/tools: bump counters after import 2016-05-10 09:54:52 +02:00
rr- b3f5486761 server/tools: add --no-data option to importer 2016-05-10 09:26:06 +02:00
rr- ec1fccf17e server/tools: fix swapping imported tag relations 2016-05-10 09:26:01 +02:00
rr- a668d3ef34 server/tags: output tag category usages 2016-05-09 22:39:04 +02:00
rr- fcbfa90879 serevr/tags: fix search by post count and category 2016-05-09 22:36:29 +02:00
rr- f39e58b1bc server/db: create indexes 2016-05-09 09:43:00 +02:00
rr- 4558557656 server/tools: add parallelism to content import 2016-05-09 09:42:31 +02:00
rr- 356d5050fd server/tools: add v1.x migration script 2016-05-08 23:26:46 +02:00
rr- 2330cf017d server/db: fix mappings
Post notes had mixed up column types. I fixed that and at the same time,
I took the opportunity to convert everything into Unicode. Also, I've
changed existing migrations rather than creating new ones - it's not
like we're even close to alpha...
2016-05-08 22:18:13 +02:00
rr- 339c9a3333 server/tags: reduce number of queries
On a test page with 50 tags, 158 queries were reduced to 3:

1. Get the authenticated user
2. Get tags for given page
3. Count all tags

Looks just about right.
2016-05-08 20:33:16 +02:00
rr- d813601d92 server/api: log queries in debug mode 2016-05-08 20:33:16 +02:00
rr- 906eddc61f server/users: change avatars to PNG 2016-05-08 18:04:06 +02:00
rr- 2bd02f4921 server/users: fix detecting duplicate user names 2016-05-08 18:04:05 +02:00
rr- 0214341473 server/users: prohibit using special ranks
Anonymous is self explanatory.
Nobody is used solely to mark certain operation as unavailable even to
administrators (<- nobody is higher than administrator).
2016-05-08 18:04:05 +02:00
rr- 198cb0af3e server/users: hardcode available ranks 2016-05-08 16:59:25 +02:00
rr- 58964bcdc9 server/posts: add post listing 2016-05-07 21:50:37 +02:00
rr- 9b591c3f1b server/posts: remember source for URL content 2016-05-05 13:46:57 +02:00
rr- 148858fde9 server/middleware: download files 2016-05-05 13:46:50 +02:00
rr- ab493a01b4 server/net: add basic downloader 2016-05-05 13:24:50 +02:00
rr- e632324f72 server/posts: add post updating 2016-05-02 21:58:13 +02:00
rr- 067e438b8c server/posts: add hasCustomThumbnail to post info 2016-05-02 00:07:33 +02:00