Marcin Kurczewski
bca92f1f71
Added more unit tests, refactored test support
2014-05-13 21:10:37 +02:00
Marcin Kurczewski
dcd2c8aa06
Added post content existence validation
2014-05-13 19:11:21 +02:00
Marcin Kurczewski
5d9513bac0
Modified post path management
2014-05-13 00:01:28 +02:00
Marcin Kurczewski
5514ed4fd6
Fixed exception throw in UserModel
2014-05-12 23:04:35 +02:00
Marcin Kurczewski
b8bb2c865e
Moved setRelationsFromText logic to controller
2014-05-12 22:39:14 +02:00
Marcin Kurczewski
a89eb97c9d
Added protection against 2 users having same mail
2014-05-12 19:17:53 +02:00
Marcin Kurczewski
0e6ed74682
Fixed post safety user settings
2014-05-12 15:15:50 +02:00
Marcin Kurczewski
9cc8d03376
Finished token validation
2014-05-09 21:29:16 +02:00
Marcin Kurczewski
9882e84aa6
Finished user validation; increased readability
2014-05-09 21:23:54 +02:00
Marcin Kurczewski
343268d029
Improved model performance a little bit
2014-05-09 21:08:33 +02:00
Marcin Kurczewski
8ee80ea170
Continued work on getter/setters: post cached keys
2014-05-09 20:29:14 +02:00
Marcin Kurczewski
a14afd8e27
Improved names of entity retrieval methods
2014-05-08 08:54:53 +02:00
Marcin Kurczewski
e4ee4589a8
Fixed/refactored tag validation
2014-05-08 08:54:53 +02:00
Marcin Kurczewski
20ee47e596
Continued work on getter/setters: staff confirm
2014-05-07 21:30:38 +02:00
Marcin Kurczewski
16942d9d19
Continued work on getter/setters: timestamps
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
a619662585
Continued work on getter/setters: post file stats
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
c4bcc4b85b
Continued work on getter/setters: post names
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
878079030d
Continued work on getter/setters: post uploaders
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
8d8e92b84e
Continued work on getter/setters: post visibility
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
75704ef0da
Continued work on getter/setters: post dimensions
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
509bf44619
Continued work on getter/setters: post sources
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
329f6a0259
Fixed account activation links
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
404bd979f4
Fixed issues with confirmation e-mails
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
e152c9baca
Fixed multiple problems with user jobs
2014-05-07 21:30:37 +02:00
Marcin Kurczewski
c005da2e6d
Refactored post content edit jobs; added unit test
2014-05-07 17:58:23 +02:00
Marcin Kurczewski
8009c16f0c
Refactored comment model, fixed anonymous previews
2014-05-07 17:58:22 +02:00
Marcin Kurczewski
7df8a6fa3b
Continued work on getter/setters: entity IDs
2014-05-07 17:58:18 +02:00
Marcin Kurczewski
8c3feaeccf
Unit tests for comments; fixed anonymous comments
2014-05-05 18:03:17 +02:00
Marcin Kurczewski
05a3cf927b
Moved validation to entities
2014-05-05 17:47:30 +02:00
Marcin Kurczewski
b885411b2e
Encapsulated a few entity getters and setters
2014-05-05 17:47:30 +02:00
Marcin Kurczewski
d3beb8bc53
Implemented new enums
2014-05-05 17:47:30 +02:00
Marcin Kurczewski
47f7ff3490
Moved account activation and password reset to API
2014-05-04 18:32:58 +02:00
Marcin Kurczewski
5c003588fa
Made tag retrieval use entity conversion again
...
Previously engine used raw database rows for performance boost. The
benefits were negligibly small, therefore it was changed so that it
returns full entities again. That way serializing job return values
for HTTP API should be easier in the future.
2014-05-04 09:48:51 +02:00
Marcin Kurczewski
d08c15b9e7
Refactor to thumbnail generating
2014-04-30 09:54:04 +02:00
Marcin Kurczewski
c52531e8fc
Increasing readability
2014-04-30 08:08:24 +02:00
Marcin Kurczewski
c18c9ec680
Lines wrapped again
2014-04-30 00:11:53 +02:00
Marcin Kurczewski
396ea97cad
PrivilegesHelper shortened to Access
...
Methods are shorter, too
2014-04-29 23:53:47 +02:00
Marcin Kurczewski
81e43286b5
Newest chibi-core
2014-04-29 21:35:29 +02:00
Marcin Kurczewski
f495774be4
New exception style; split long lines in php
2014-04-27 16:01:45 +02:00
Marcin Kurczewski
af1828a9e8
Added HTML5 video support ( closed #75 )
2014-04-08 16:54:36 +02:00
Marcin Kurczewski
34b9a80ba7
Moved Sql and Database.php to remote project
2014-02-28 20:44:35 +01:00
Marcin Kurczewski
cb489d1eca
SQL operator refactor
...
* Added few new operators that were left hardcoded
* Changed "Operator" to "Functor"
* Better hierarchy - less mess
* Serialized SQL queries should contain fewer braces
2014-02-24 21:38:09 +01:00
Marcin Kurczewski
6af3a0e42b
SQL overhaul: introducing tree-like queries
...
Reason: until now, PostSearchService was using magic to get around the biggest
limitation of SqlQuery.php: it didn't support arbitrary order of operations.
You couldn't join with something and tell then to select something from it.
Additionally, forging UPDATE queries was a joke. The new Sql* classes replace
SqlQuery completely and address these issues. Using Sql* classes might be
tedious and ugly at times, but it is necessary step to improve model layer
maintainability.
It is by no menas complete implementation of SQL grammar, but for current needs
it's enough, and, what's most important, it is easily extensible.
Additional changes:
* Added sorting style aliases
- fav_count
- tag_count
- comment_count
* Sorting by multiple tokens in post search is now possible
* Searching for disliked posts with "special:disliked" always yields results
(even if user has disabled showing disliked posts by default)
* More maintainable next/prev post support
2014-02-22 19:40:10 +01:00
Marcin Kurczewski
1352aba438
Fixed saving post original file name to DB
2014-02-18 18:35:58 +01:00
Marcin Kurczewski
c99596d12b
Added last login date to users
2014-02-13 09:10:24 +01:00
Marcin Kurczewski
fd9433a2e3
Edit tokens moved to model
2014-01-25 15:09:20 +01:00
Marcin Kurczewski
b1fb329fc7
Fixed silly bug
...
Statistics for each user in user list showed comment count instead of post
count.
2013-12-23 16:43:12 +01:00
Marcin Kurczewski
306c6478b4
Micro optimalizations
...
Saved 0.015s on various things, mostly thanks to new chibi-core caching
2013-12-23 10:10:03 +01:00
Marcin Kurczewski
8cfc2aeb2a
Fixes for MySQL driver
2013-12-18 17:49:22 +01:00
Marcin Kurczewski
5607cfc353
Models rewrite; removed RedBeanPHP; misc changes
...
Pages load 1.5-2x faster
Exception trace in JSON is now represented as an array
Fixed pagination of default favorites page in user pages
Fixed thumbnail size validation for non-square thumbnails
2013-12-18 15:17:49 +01:00