Commit graph

590 commits

Author SHA1 Message Date
Marcin Kurczewski
6ebd1e56ee Removed fileinfo dependency
Recent changes in thumbnail generators revealed that finfo module cannot
be relied on - I found a GIF file that started with usual "GIF87a", and
yet finfo reported its mime type to be "application/octet-stream".

This change removes reliance on finfo module and implements detecting
common file types supported by szurubooru in manual fashion. This might,
of course, introduce some bugs that weren't present when using finfo.
However, this change was made exactly because of such bug - while
previously such edge cases were impossible to fix, now they can be
dealt with accordingly in our own code.

Also from what I saw on the Internet, getting fileinfo to work on
Windows is a lot of trouble, so this change is welcome from that angle,
too.
2014-10-25 23:59:07 +02:00
Marcin Kurczewski
83ca1fcfb4 Changed notes to be rendered only in image posts 2014-10-25 23:59:07 +02:00
Marcin Kurczewski
22d7ab8732 Added post note dragging and resizing in frontend 2014-10-25 20:44:40 +02:00
Marcin Kurczewski
d0270824f1 Changed thumbnail script to use newest posts first 2014-10-25 20:43:25 +02:00
Marcin Kurczewski
8bae666275 Improved error messages in ImageConverter 2014-10-25 18:49:03 +02:00
Marcin Kurczewski
766fc05075 Fixed thumbnail generator not catching exceptions 2014-10-25 18:48:47 +02:00
Marcin Kurczewski
ef98e00b15 Fixed featuring the same post bumping counter 2014-10-25 18:31:53 +02:00
Marcin Kurczewski
3dbb2b06be Fixed relations being wiped out when saving
The code worked like this:

1. Delete old relations
2. Get related entities
3. Save old relations

If the entity hasn't retrieved relations until now, autoloader tried to
get related entities /after/ they were deleted.
2014-10-25 18:31:53 +02:00
Marcin Kurczewski
f72b0216a5 Fixed "featured by" showing post uploader 2014-10-25 18:20:39 +02:00
Marcin Kurczewski
f7ff4e0a71 Added post notes presenter 2014-10-25 15:02:46 +02:00
Marcin Kurczewski
f3a4c9ee67 Added post note retrieval in backend 2014-10-25 14:16:19 +02:00
Marcin Kurczewski
e03ed35862 Added post note DAO 2014-10-25 14:16:19 +02:00
Marcin Kurczewski
ccca71c1b8 Added optipng/jpgoptim support to thumbnails 2014-10-25 14:16:19 +02:00
Marcin Kurczewski
355e088fad Enabled DEFLATE compression in htaccess 2014-10-25 14:16:19 +02:00
Marcin Kurczewski
c64fe89918 Fixup cache htaccess 2014-10-25 14:16:18 +02:00
Marcin Kurczewski
11ceb819a9 Added image, JS and CSS cache settings to htaccess 2014-10-25 12:26:15 +02:00
Marcin Kurczewski
cc57d56023 Added external libraries to minifying process 2014-10-25 12:25:44 +02:00
Marcin Kurczewski
81a5f2c1d4 Changed order of CSS / JS 2014-10-25 11:59:59 +02:00
Marcin Kurczewski
bb44ffde43 Fixed post edit form z-index 2014-10-25 11:40:34 +02:00
Marcin Kurczewski
7220dc3ffa Fixed tag input behavior for initial tags 2014-10-25 10:52:24 +02:00
Marcin Kurczewski
6f6d3a34a7 Added hiding page list when loading next page 2014-10-25 10:37:11 +02:00
Marcin Kurczewski
55dbb67940 Fixed clicking "search" twice on endless scroll 2014-10-25 10:36:07 +02:00
Marcin Kurczewski
54f07f5a90 Fixed scrolling to top when endless scroll enabled 2014-10-25 10:03:32 +02:00
Marcin Kurczewski
60f4dd9d4a Fixed getting dimensions of videos and flashes 2014-10-24 18:25:33 +02:00
Marcin Kurczewski
dd02938a96 Improved comment list on small screens 2014-10-24 09:45:45 +02:00
Marcin Kurczewski
b15cdfb02d Fixed editing post 2014-10-24 09:15:31 +02:00
Marcin Kurczewski
587fa1742f Updated TODO 2014-10-23 23:04:58 +02:00
Marcin Kurczewski
eed2588eb7 Fixed list presenters not scrolling to top 2014-10-22 19:14:42 +02:00
Marcin Kurczewski
619a0c0cc4 Fixed progress behavior when navigating too fast 2014-10-22 19:09:25 +02:00
Marcin Kurczewski
5455106577 Fixed comment list privileges in top navigation 2014-10-22 18:44:57 +02:00
Marcin Kurczewski
8b217118af Moved progress-related functions to promises 2014-10-22 18:43:09 +02:00
Marcin Kurczewski
64743499b6 Added client-side support for browsing settings 2014-10-22 18:38:04 +02:00
Marcin Kurczewski
4d7e035383 Fixed browsing settings deserialization 2014-10-22 18:37:50 +02:00
Marcin Kurczewski
527356bba2 Extracted post content presenter 2014-10-22 18:32:53 +02:00
Marcin Kurczewski
82d59b57e6 Extracted post edit presenter 2014-10-22 18:32:52 +02:00
Marcin Kurczewski
ea16d5c9df Fixed JS validation 2014-10-22 18:32:52 +02:00
Marcin Kurczewski
72bd4c479a Added current page info to endless scroll 2014-10-20 20:30:13 +02:00
Marcin Kurczewski
20d75e177d Improved performance of "hide downvoted" 2014-10-20 20:15:45 +02:00
Marcin Kurczewski
88dfc0eb96 Fixed nprogress nesting 2014-10-20 20:01:37 +02:00
Marcin Kurczewski
25080fd977 Fixed race condition in pager presenter 2014-10-20 19:37:48 +02:00
Marcin Kurczewski
ea77a662ad Fixed searching for liked/disliked posts 2014-10-19 21:19:40 +02:00
Marcin Kurczewski
16e4a4a7e7 Fixed fpdo leftovers 2014-10-19 21:15:25 +02:00
Marcin Kurczewski
c52ed6a455 Abandoned FPDO
Also, fixed tag search by categories
2014-10-19 20:09:06 +02:00
Marcin Kurczewski
c55c0833ea Replaced references to szuru2 with szurubooru 2014-10-19 16:02:19 +02:00
Marcin Kurczewski
9817172db3 Fixed link to repository 2014-10-19 16:01:00 +02:00
Marcin Kurczewski
368ca1ae3f Added tag filtering by category 2014-10-19 15:51:57 +02:00
Marcin Kurczewski
462708c1d8 Fixed siblings occasionally removing wrong tag 2014-10-19 15:32:11 +02:00
Marcin Kurczewski
8509b5fb00 Improved tag list scaling 2014-10-19 15:25:21 +02:00
Marcin Kurczewski
c852bc156b Fixed mousetrap dependency name 2014-10-19 13:42:48 +02:00
Marcin Kurczewski
c43db03624 Fixed input tag shown as its own sibling 2014-10-19 13:36:54 +02:00