Commit graph

330 commits

Author SHA1 Message Date
Marcin Kurczewski
bf58207950 Improved tag list appearance; added more info 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
231d6a732f Improved readability of privilege error messages 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
d30fd1a9de Improved sibling tag order 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
5815f156a8 Added tag relationship management to backend 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
1b82504f08 Improved tag edit performance
Post history rewrite happens only when tag has really changed its name.
2014-10-18 18:48:41 +02:00
Marcin Kurczewski
34e220d465 Improved tag export performance 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
790c3e10c6 Added tag implications and suggestions to export 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
0bd0589e32 Added tag relations database interface 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
850e496215 Removed IDs from tags.json 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
250ffb209f Added tag banning 2014-10-18 18:48:41 +02:00
Marcin Kurczewski
6209cc7833 Refactored tag creating 2014-10-18 18:48:40 +02:00
Marcin Kurczewski
8f03c68ec8 Changed tag export structure 2014-10-18 18:48:40 +02:00
Marcin Kurczewski
35b893db9d Fixed user banning privilege 2014-10-18 18:48:40 +02:00
Marcin Kurczewski
5a4d5797d8 Added aliases for date-based searches 2014-10-18 18:48:40 +02:00
Marcin Kurczewski
7f560d96d4 Improved migration script performance 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
3ae01ee4e8 Fixed restricted user unable to view his profile 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
7a15a590ed Changed viewing access ranks to require privilege 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
fc13fb1342 Changed default access rank to restricted user 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
1ca61e368b Added new user access rank 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
f114c65355 Added default tag order to post view proxy 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
5187d3a788 Fixed duplicate and missing search orders 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
fadd37fe84 Fixed uploader: SQL ambiguity 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
6015199559 Added tag siblings to API 2014-10-18 18:48:39 +02:00
Marcin Kurczewski
1415f5c521 Fixed comments showing disliked posts 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
a1b71ed9e1 Disabled blank thumbnail saving 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
823fa2da15 Removed useless dependency in UserService 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
99b08879bd Improved search speed 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
78759a6557 Added migration script 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
2f6b56b08c Fixed comment saving 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
48519014fc Added default timezone 2014-10-18 18:48:38 +02:00
Marcin Kurczewski
672185f959 Added tag name changing 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
74e6e008dc Implemented mass tag 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
abc3259222 Fixed avatars for anonymous users 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
93291e5164 Added ability to loop video posts 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
4d20e1bfc4 Added random optimizations 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
3010bd52f2 Faster ETag computation 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
04bdb04f20 Added meaningful name to saved posts 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
6c9954f298 Reduced responsibilities of HttpHelper 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
3744f0429a Split FileService to NetworkingService and FileDao 2014-10-18 18:48:37 +02:00
Marcin Kurczewski
632bac8661 Added "use ..." statements
This version ditches backwards compatibility with PHP earlier than 5.6.
2014-10-18 18:48:36 +02:00
Marcin Kurczewski
5bc73d220e Added removal of unused tags 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
76d9e95e4b Moved tag export to service 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
25f1e5b83d Fixed order of comments 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
e85293f338 Improved error message when search requires auth 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
287c3c1cb3 Fixed post search parsing 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
d1c2c77eb5 Fixed privilege checking 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
49124298a2 Added tag listing 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
7579d962ba Added NotSupportedException 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
731eb6561b Added creation time to tags 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
9379b4945a Moved tag synchronization to TagService 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
3cb9955ec6 Fixed coding conventions in entities 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
185f820e21 Added support for legacy passwords 2014-10-18 18:48:36 +02:00
Marcin Kurczewski
91876bb66f Reversed default history order 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
7fc0cd7631 Fixed problems with colons in tags 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
66535f6142 Added a few prohibited characters to tags 2014-10-18 18:48:35 +02:00
Marcin Kurczewski
640b66a324 Added list of SQL statement to debug output 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
6bf8586735 Added comment scoring 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
28e87dca93 Removed unused lazy loaders 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
edb9055299 Changed favorite and score DAO to be more flexible 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
1a8568392f Fixed post deleting 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
17cc4e7947 Added comment count to post list 2014-10-18 18:48:34 +02:00
Marcin Kurczewski
16c5740277 Added comment API 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
e43f3b54d7 Added various option support to post searching 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
cc22f3c0ba Added comment DAO 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
a728279bf5 Removed reliance on global from Dispatcher 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
4220a83589 Reduced query count for tag retrieval 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
332ca8e4b7 Added query count statistics to responses 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
58a689235a Fixed triggers 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
b4992926a1 Added autohiding disliked posts to post searching 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
0e59147423 Added safety browsing settings to post searching 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
8743cda1a0 Fixed yet another FluentPDO fuckup 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
614111a5f0 Changed user settings to be stored as arrays 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
22e7d3657b Added order:random support to post searching 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
0049d59354 Fixed managing default search order 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
9c1a028c81 Added order:file_size support to post searching 2014-10-18 18:48:33 +02:00
Marcin Kurczewski
c2b201d36b Added special:fav support to post searching 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
5db571ab7f Added special:(dis)liked support to post searching 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
c021c9a1c0 Added type: support to post searching 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
216d9b3001 Moved autoloader to composer config 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
52d44284fb Changed search order parsing to be more strict 2014-10-18 18:48:32 +02:00
Marcin Kurczewski
61e95ac708 Added order: support to searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
17d898bc0c Fixed default user search order 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
c124f89b8b Added fav: support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
97a1c52018 Added safety: support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
4c458d8b20 Fixed privileges 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
0cfb7b821d Added uploader: support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
11931075f5 Added score: support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
47081293ef Added fav_count: support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
a80050b70e Added tag_count: support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
ac78f3b4b8 Added order:time support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
57dc7c5fad Added order:id support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
736a25c3a4 Added order:score support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
e0ced89a9b Added order:tag_count support to post searching 2014-10-18 18:48:31 +02:00
Marcin Kurczewski
81c2025203 Added hash: support to post searching 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
6f563e72c3 Fixed negative offsets in AbstractDao 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
31e0158606 Added user banning 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
3268618f26 Fixed logging in from multiple computers 2014-10-18 18:48:30 +02:00
Marcin Kurczewski
060ddf46ad Added automatic tag JSON export
I plan to use it in autocomplete inputs.
2014-10-18 18:48:30 +02:00
Marcin Kurczewski
0256de2e98 Fixed issues with tag case sensitivity 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
50ca13b136 Reduced requests in post view 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
c0bc4d4f19 Improved compatibility with MySQL 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
6d7566ee2f Added post scoring 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
8a9bf259e4 Added order:fav_date and order:fav_count support 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
e811b1a876 Reduced aliases for searches 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
8c108ccfbf Changed default order to descending 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
f090a752f0 Added favorite count to post list 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
6e22efdd6e Added post favoriting 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
6d4a4f11d1 Added post searching by date 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
5159214e80 Added searching by tags and ids 2014-10-18 18:48:29 +02:00
Marcin Kurczewski
9edc74f9a5 Added post history 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
df939e0343 Simplified injecting db connection for upgrades 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
2fc6a23e46 Refactored search filters 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
5dc85b7dee Added post relations 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
22b30c3e43 Added concurrent editing detection 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
a7c07d32df Added last edit time to basic post information 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
d2447045dd Added basic post editing 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
d3015627b3 Added post globals 2014-10-18 18:48:28 +02:00
Marcin Kurczewski
ac62a44ba7 Fixed registering multiple users with empty e-mail 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
97ca08cf44 Added post featuring 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
2387dd4074 Refactored entity filtering 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
7b0d907acc Fixed login remembering 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
c33817e4ab Optimized API operations
Every operation updated user last login time, which was inefficient.
Changed it to update only after logins from credentials or cookies.
2014-10-18 18:48:27 +02:00
Marcin Kurczewski
a140e04ca3 Added post deleting 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
aff5965091 Added basic information to post view 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
51a80c22c5 Added author and upload date to post view 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
881d2a6b38 Fixed unknown variable 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
1d72cec84b Added user lazy loading 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
39d854cb8e Added usage count tracking to tags and posts 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
af3908a23c Added id column to tags 2014-10-18 18:48:27 +02:00
Marcin Kurczewski
7e1234e448 Fixed thumbnail generating 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
b01adce156 Added stricter validation to user avatars 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
42001d3edf Refactored thumbnail system 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
fbdb4e5128 Changed mime detection to be case insensitive 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
a3f9382671 Changed file mgmt to use entities' lazy getters 2014-10-18 18:48:26 +02:00
Marcin Kurczewski
13a15a3a6b Added post mime type saving 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
34752529b5 Fixed saving tags under certain circumstances 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
6defeb0da4 Fixed youtube thumbnails 2014-10-18 18:48:25 +02:00
Marcin Kurczewski
7806333b24 Added post view placeholder 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
3b505a9c60 Fixed transaction manager tests using real DB 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
5cfb225400 Fixed lazy loaders injection
AbstractSearchService::getByFilter() wasn't injecting lazy loaders,
because it didn't call AbstractDao::afterLoad(). This resulted in tags
not showing up in post list, because there was nothing to retrieve them.
Changed lazy loaders injection so that it's always executed as soon as
possible (i.e. right in EntityConverter).
2014-10-18 18:48:24 +02:00
Marcin Kurczewski
a16a2d3235 Added posts listing (closed #7) 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
15eb2342b9 Moved public data to public_html/
This is going to improve caching.
2014-10-18 18:48:24 +02:00
Marcin Kurczewski
55f4f4430b Added post content and thumbnail presenter 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
b4d2c5ecbb Fixed retrieving total record count 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
932407a571 Fixed unserializing enum values 2014-10-18 18:48:24 +02:00
Marcin Kurczewski
815a37cf9a Allowed setting e-mail to empty after activation 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
aee6ed7dbf Fixed bad message when setting e-mail to empty 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
f032460621 Fixed MIME retrieval for files 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
ef451d93ac Added protection against too big uploads 2014-10-18 18:48:23 +02:00
Marcin Kurczewski
c155cc3e5c Fixed file size check in FileService::download() 2014-10-18 18:48:23 +02:00