- 28 Apr, 2014 4 commits
- 22 Apr, 2014 1 commit
-
-
mattl authored
-
- 21 Apr, 2014 7 commits
-
-
mattl authored
-
mattl authored
Noone should trust an <img/> tag delivered like that anyway.
-
mattl authored
The File object now stores width and height of files that can supply this kind of information. Formats which we can not read natively in PHP do not currently benefit from this. However an event hook will be introduced later. The CreateFileImageThumbnail event is renamed to: CreateFileImageThumbnailSource to clarify that the hooks should not generate their own thumbnails but only the source image. Also it now accepts File objects, not MediaFile objects. The thumbnail generation is documented in the source code. For developers, call 'getThumbnail' on a File object and hope for the best. Default thumbnail sizes have increased to be more appealing.
-
mattl authored
-
mattl authored
-
mattl authored
-
mattl authored
-
- 20 Apr, 2014 2 commits
- 19 Apr, 2014 5 commits
- 18 Apr, 2014 10 commits
-
-
mattl authored
-
mattl authored
-
mattl authored
-
mattl authored
-
mattl authored
The only reason it worked was because DB fetches calls to get$varname if the dataobject has a variable with the specific name. However, it started blurting out errors that the case must be correct (which would require 'geturl' to be the function name). Since we probably want to replace DB sometime, we'll just override this auto-fetching mechanism and use more explicitly defined functions.
-
mattl authored
-
mattl authored
-
mattl authored
-
mattl authored
-
mattl authored
-
- 17 Apr, 2014 1 commit
-
-
mattl authored
-
- 16 Apr, 2014 4 commits
-
-
mattl authored
Avoiding collisions with date (shorter than before) and 4 character random alphanumeric string. I bet someone could mass-upload files and generate all combinations of aaaa-zzzz during the course of a day, but then maybe that user should be disabled anyway :) (filling the collision space will cause a never-ending loop).
-
mattl authored
-
mattl authored
The exception thrown from MediaFile will be caught and simply result in no thumbnail at all right now. In the future we might use a catch-all and have a "cannot generate preview"-icon or something. VideoThumbnails requires php5-ffmpeg and php5-gd.
-
mattl authored
-
- 15 Apr, 2014 1 commit
-
-
mattl authored
Actions have $this->scoped as the current profile which we can gladly replace all the $cur=common_current_user() with. And we want the prepare/handle functions to be protected. Plus only the prepare function uses $args (which _must_ be an array).
-
- 14 Apr, 2014 2 commits
- 06 Apr, 2014 2 commits
- 31 Mar, 2014 1 commit
-
-
mattl authored
Merge commit 'refs/merge-requests/199' of git://gitorious.org/statusnet/mainline into statusnet-merge-requests/199
-