Hypolite Petovan
774609dd38
Refactor Worker/Notifier part 3
...
- Replace deprecated q() calls
2019-01-21 09:31:56 -05:00
Hypolite Petovan
d0228b9b97
Refactor Worker/Notifier part 2
...
- Move self-removal in a sub-method in Worker/Notifier
2019-01-21 09:27:06 -05:00
Hypolite Petovan
507c215c76
Refactor Worker/Notifier part 1
...
- Rename variables
- Remove orphan, duplicate and one-use intermediary variables
- Initialize potentially missing variables
- Replace obsolete Addon::callHooks call
- Simplify Notifier::activityPubDelivery() signature
2019-01-21 09:27:05 -05:00
Jeroen De Meerleer
ff180fb0f1
Updated towards code review
2019-01-21 09:12:38 -05:00
fabrixxm
b2211d31b9
Fix StorageManager::move()
2019-01-21 09:12:37 -05:00
Jeroen De Meerleer
a224308d42
4 spaces to tab
2019-01-21 09:12:37 -05:00
Jeroen De Meerleer
0906c3532c
Added post-update script
...
Please review first. I don't want to test changes that are not going pass the review.
2019-01-21 09:12:37 -05:00
fabrixxm
8addcf9844
Fix storage backend class names
...
This should be tested on all supported PHP versions
2019-01-21 09:12:32 -05:00
Hypolite Petovan
578a391393
Add missing methods to Storage\SystemResource
...
Part of #6263
2019-01-21 09:12:31 -05:00
fabrixxm
bbbc15a5eb
Method getPhoto of Photo model should return false on error
...
Instead of red circle image, which breaks proxy module
2019-01-21 09:12:31 -05:00
fabrixxm
4e38bc8a0d
Use DBA::exists() in Photo::exists()
2019-01-21 09:12:31 -05:00
fabrixxm
2f935a1fbf
Fix unregister storage backend
2019-01-21 09:12:30 -05:00
fabrixxm
f2b29f6591
Fix moving stored data
2019-01-21 09:12:30 -05:00
fabrixxm
55292c954b
Remove resourceid parameter from Photo::exists()
2019-01-21 09:12:29 -05:00
fabrixxm
8c75c26361
Use Model\Photo as much as possible
...
Most important is to use `Photo::delete()` to have backend
to remove data.
2019-01-21 09:12:28 -05:00
fabrixxm
d549787bc1
Remove empty line before code
2019-01-21 09:11:41 -05:00
fabrixxm
15a3fc05d3
Photo model: set edited and updated on update, fix exists(), docs
2019-01-21 09:11:40 -05:00
fabrixxm
36f30533b7
Code standards
2019-01-21 09:11:40 -05:00
fabrixxm
5fdc9097a2
Rewrite Proxy module
2019-01-21 09:11:40 -05:00
fabrixxm
a46cbfca3d
Fix Module\Photo exit with error
2019-01-21 09:11:39 -05:00
fabrixxm
fdc6608af8
Add storage options form in admin/site page
2019-01-21 09:11:39 -05:00
fabrixxm
f7b6fef197
Code standards
2019-01-21 09:11:35 -05:00
fabrixxm
682456c7d1
Add move function to storage manager and console command
2019-01-21 09:11:35 -05:00
fabrixxm
4d9d62bcdb
Add 'storage' console command
...
- list registered backend
- set backend
2019-01-21 09:11:34 -05:00
fabrixxm
6a0ed7c298
Add storage backend manager class
2019-01-21 09:11:34 -05:00
fabrixxm
e5c2d4e2f8
Add Database storage backend
...
This storage store files data in a separate database table
2019-01-21 09:11:33 -05:00
fabrixxm
6e85a18678
Storage: throw StorageException on errors
2019-01-21 09:10:47 -05:00
fabrixxm
7df3f117ac
Photo model: fix docs, don't update "created" field
...
in store() if photo exists, don't update "created" timestamp
2019-01-21 09:10:47 -05:00
fabrixxm
6f59c82978
Code standards
2019-01-21 09:10:46 -05:00
fabrixxm
69fcdaf9ab
Photo model: set updated field in update()
2019-01-21 09:10:45 -05:00
fabrixxm
3e13799e70
Add update() to Photo model
...
Edit mod/photos.php to use Photo model
2019-01-21 09:10:45 -05:00
fabrixxm
b0acf4284d
Code standards
2019-01-21 09:02:58 -05:00
fabrixxm
cbb5124d59
Code standards
2019-01-21 09:02:57 -05:00
fabrixxm
ea0cd6c919
Filesystem storage: add "index.html" files in dirs
2019-01-21 09:02:57 -05:00
fabrixxm
76579e02cc
profile_photo: use Photo model function to get photo and image
2019-01-21 09:02:57 -05:00
fabrixxm
234c110d38
Model/Photo: use self select functions, reuse backend, fix quotes, add delete()
2019-01-21 09:01:52 -05:00
fabrixxm
75daf96590
Revert "Catch HTTPExceptions in App::runFrontend()"
...
This reverts commit 58bd75f8f3
.
2019-01-21 08:59:59 -05:00
fabrixxm
07d358adc1
More code standard
2019-01-21 08:57:30 -05:00
fabrixxm
9317a1c054
Address code standards issues
2019-01-21 08:57:30 -05:00
fabrixxm
12dd7b552f
Add Filesystem storage backend and store photo via backend
2019-01-21 08:57:29 -05:00
fabrixxm
0ada604c7d
Return default profile photo if no profile photo is set
2019-01-21 08:57:29 -05:00
fabrixxm
9b2e3fa916
Add IStorage interface
...
storage classes should implement this interface
2019-01-21 08:57:29 -05:00
fabrixxm
3b3c4e8cc7
Pluggable storage backends: first steps
...
- add backend related columns in photo table
- add system resource storage class
- add code to load image data from backend class
- return "nosign" image as photo meta with SystemResource backend
2019-01-21 08:57:28 -05:00
fabrixxm
89eaf508f1
Catch HTTPExceptions in App::runFrontend()
...
Set correct http response header, display error message using "404.tpl"
2019-01-21 08:49:17 -05:00
fabrixxm
b96dbcd4cb
Move Photo module, update Photo model
2019-01-21 08:40:47 -05:00
Unknown
5db9d2fe66
Some more alignation
2019-01-21 08:40:46 -05:00
Unknown
bc553a2c49
Translated string will never match what's saved in DB if not english
...
Rare jongens die Amerikanen ;)
2019-01-21 08:40:46 -05:00
Unknown
c44ca31aec
Why got this even approved?
2019-01-21 08:40:46 -05:00
Unknown
24dbb69421
Added EMPTY key + updated to hypolite's suggestions
2019-01-21 08:40:45 -05:00
Jeroen De Meerleer
4d81158dd1
Translated gender etc. in profile view
2019-01-21 08:40:45 -05:00