Robin Appelman
b6927d0fa3
Merge pull request #39075 from fsamapoor/refactor_lib_private_profile
...
Refactors lib/private/Profile.
2023-09-22 11:10:42 +07:00
Faraz Samapoor
d1673ca3b8
Update lib/private/Profile/Actions/FediverseAction.php
...
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
2023-07-13 09:17:57 +07:00
Thomas Citharel
cd9dac1d20
fix(profile): fix getUID on nullable user variable
...
As per method signature, $visitingUser is nullable, so we can't be sure calling getUid() on it will
work.
Closes #35766
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2023-07-11 14:41:58 +07:00
Faraz Samapoor
b4dd68f5b3
Refactors lib/private/Profile.
...
Mainly using PHP8's constructor property promotion.
Signed-off-by: Faraz Samapoor <fsa@adlas.at>
2023-06-29 22:51:54 +07:00
Jérôme Herbinet
c343569b3f
To be consistent with the list of users
...
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2023-04-18 15:47:26 +07:00
Côme Chilliet
f5c361cf44
composer run cs:fix
...
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
2023-01-20 11:45:08 +07:00
Carl Schwan
d1209d8302
Rename mastodon to fediverse
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-11-22 08:40:12 +07:00
Carl Schwan
86d9626901
Add mastodon personal info field
...
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-11-21 16:28:56 +07:00
Carl Schwan
5edab8c922
Cache ConfigProfile
...
Reduce DB query count on homepage from 21 to 13
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-18 12:02:16 +07:00
luz paz
368f83095d
Fix typos in lib/private subdirectory
...
Found via `codespell -q 3 -S l10n -L jus ./lib/private`
Signed-off-by: luz paz <luzpaz@github.com>
2022-07-27 08:52:17 +07:00
Christopher Ng
108abd77ed
Add profile default setting for admin
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-18 02:55:12 +07:00
Christopher Ng
1fc0b4320c
Add global profile toggle config
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2022-03-18 02:55:12 +07:00
Christopher Ng
abecf594d6
Fix source of translations
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-11-26 02:00:40 +07:00
Christopher Ng
ae85a16ed2
Fix inactive profile parameters being returned
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-11-25 05:01:18 +07:00
Christopher Ng
50a6612c1f
Refine profile backend for frontend visibility requirements
...
- Provide metadata
- Dynamic displayId
- Add appId
- Filter out unused parameter config properties from the existing profile config
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-11-04 00:17:29 +07:00
Christopher Ng
eb6217f551
Better function descriptions
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-11-03 23:15:56 +07:00
Christopher Ng
ee1c6eefb4
Add additional check on action registrations
...
- Minor refactor
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-11-03 23:15:56 +07:00
Christopher Ng
7b1cdf1fa6
Prevent unnecesary profile action registrations
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-26 08:59:28 +07:00
Christopher Ng
9f8eae3f50
Use more explicit naming for profile link action
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-25 22:20:19 +07:00
Christopher Ng
bff02f5e51
Populate defaults into exising profile config
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-20 01:07:38 +07:00
Christopher Ng
f5bdf02695
Cleanup
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-20 00:17:22 +07:00
Christopher Ng
309354852f
Profile backend
...
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2021-10-19 04:59:35 +07:00