summaryrefslogtreecommitdiffstats
path: root/lib/private/Avatar
Commit message (Collapse)AuthorAgeFilesLines
* Add known user check in avatar when v2-private scopeVincent Petry2021-03-291-12/+23
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Added PlaceholderAvatar with own cached imagesVincent Petry2021-03-293-10/+191
| | | | | | | | | | | 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>
* Add new v2-private account scopeVincent Petry2021-03-291-1/+35
| | | | | | | | | | Added new v2-private account manager scope that restricts the scope further by excluding public link access. Avatars with v2-private account scope are now showing the guest avatar instead of the real avatar. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Update license headers for 19Christoph Wurst2020-04-292-0/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Delete avatar if a user is deletedJulius Härtl2020-04-241-0/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-103-5/+3
| | | | | | | | | | | | | | | 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>
* Remove trailing and in between spacesChristoph Wurst2020-04-091-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-4/+4
| | | | 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 tests after #18745Roeland Jago Douma2020-01-271-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Change avatar placeholder from single letter to 2 lettersSergey Shliakhov2020-01-271-9/+11
| | | | | https://github.com/nextcloud/server/issues/18717 Signed-off-by: Sergey Shliakhov <husband.sergey@gmail.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-054-18/+34
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-222-3/+3
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* 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>
* Move font from Nunito to Noto SansJan-Christoph Borchardt2019-06-221-5/+5
| | | | Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
* Don't get the avatar when we don't operate anywayJoas Schilling2019-04-091-5/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Switch guest avatars to PNGMichael Weimann2019-02-071-2/+2
| | | | Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
* Implement guest avatar endpointMichael Weimann2019-02-074-0/+906
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>