summaryrefslogtreecommitdiffstats
path: root/lib/private/Avatar/UserAvatar.php
Commit message (Collapse)AuthorAgeFilesLines
* composer run cs:fixCôme Chilliet2023-01-201-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Avatar new styleCarl Schwan2022-09-091-15/+31
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Make Color class publicCarl Schwan2022-07-051-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cleanup avatar related codeCarl Schwan2022-06-221-34/+14
| | | | | | | | - Move event listener to new event handling - Add typing almost everywhere - Fix inconsistent interface parameter Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Use Image class from public APIChristopher Ng2022-06-021-3/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* Fix resource usages in OC_ImageCôme Chilliet2021-10-281-2/+5
| | | | | | This makes sure using resource or GdImage (PHP>=8) behaves the same. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-2/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Less ILoggerJoas Schilling2021-04-271-3/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Added PlaceholderAvatar with own cached imagesVincent Petry2021-03-261-0/+1
| | | | | | | | | | | When avatar scope is private, the PlaceholderAvatar is used to deliver a placeholder avatar based on the user's initials. This was implemented as a separate class for now to avoid messing with the existing UserAvatar implementation and its generated vs non-generated logic. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-3/+1
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix generated avatars and nophoto cache filesJoas Schilling2020-03-241-1/+1
| | | | | | | | Since nextcloud/server#19493 newFile() by default does not write the file anymore. Setting an empty string as content will make it write the file immediate, without having to call putContent() afterwards. Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix license headersChristoph Wurst2020-01-131-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Always set the generated flag to false when an avatar is being setJoas Schilling2019-12-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-051-7/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* reduce adressbook change events and handlingArthur Schiwon2019-09-041-3/+5
| | | | | | ... from four to one on avatar updates Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Don't get the avatar when we don't operate anywayJoas Schilling2019-04-091-5/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Implement guest avatar endpointMichael Weimann2019-02-071-0/+336
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>