aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Avatar
Commit message (Collapse)AuthorAgeFilesLines
* Properly clear cached avatarsjld31032023-05-151-7/+2
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* another approach to fixing the avatar generationSimon L2023-03-291-0/+5
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* composer run cs:fixCôme Chilliet2023-01-202-2/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "avatar generation - disable setimageformat"Simon L2022-12-291-2/+1
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* avatar generation - disable setimageformatSimon L2022-12-271-1/+2
| | | | Signed-off-by: Simon L <szaimen@e.mail.de>
* Update avatars on updateCarl Schwan2022-09-091-6/+6
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Dark theme for guest avatarCarl Schwan2022-09-093-8/+8
| | | | | | And better caching policy Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Avatar new styleCarl Schwan2022-09-092-30/+53
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-1/+1
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Make Color class publicCarl Schwan2022-07-053-48/+15
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Cleanup avatar related codeCarl Schwan2022-06-224-103/+44
| | | | | | | | - Move event listener to new event handling - Add typing almost everywhere - Fix inconsistent interface parameter Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32697 from nextcloud/fix/get-avatar-authzPytal2022-06-081-11/+14
|\
| * Fix get avatar authorizationChristopher Ng2022-06-071-11/+14
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Use Image class from public APIChristopher Ng2022-06-022-6/+4
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* catch storage not available when deleting avatarRobin Appelman2022-02-251-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>
* adjust internal data handling logic to fix store and loadArthur Schiwon2021-06-301-3/+8
| | | | | | - format as stored previously in oc_accounts table is kept Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-045-14/+10
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Less ILoggerJoas Schilling2021-04-275-30/+15
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Add known user check in avatar when v2-private scopeVincent Petry2021-03-261-12/+23
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Added PlaceholderAvatar with own cached imagesVincent Petry2021-03-263-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-261-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>
* improve type handling of Avatar::generateAvatarFromSvRobin Appelman2021-03-241-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-1/+1
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* 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>