Commit Graph

67 Commits

Author SHA1 Message Date
Hamza Mahjoubi b173ba79eb run composer cs:fix
Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
2024-04-02 14:16:28 +02:00
Christoph Wurst 687ab6b81d
fix(socialavatars): Fix HTTP client usage
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2023-11-30 17:19:21 +01:00
Daniel Kesselberg 1910947e55
refactor: move type matching to own function
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
2023-10-11 16:53:52 +02:00
matt 18819a5baa
Merge pull request #3504 from nextcloud/fix/social-mastodon
change Mastodon tree for social avatar
2023-07-27 12:23:07 +02:00
call-me-matt 115b1b4733
change Mastodon tree for social avatar
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2023-07-27 12:15:06 +02:00
call-me-matt 82fde0e121
deactivate social avatars from twitter
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2023-07-07 13:03:39 +02:00
call-me-matt c193a600d7
prioritize local users in mastodon avatar download, fixes #3210
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2023-01-28 13:15:56 +01:00
Richard Steinmetz 2b369fc732
chore: run composer cs:check
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-01-20 16:04:51 +01:00
call-me-matt 720f81d231
allow social avatars from telegram, fixes #2393
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2023-01-13 09:25:50 +01:00
call-me-matt 887b2aba4e
use Mastodon API instead of scraping
fixes #3151

Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2023-01-07 22:59:12 +01:00
Corentin Noël 4a08aa9a3c Properly decode escaped principal urls
Apply the same fix as in 8c294b12e1
to allow sharing with groups that contains spaces and escaped characters

Fixes #2411

Signed-off-by: Corentin Noël <tintou@noel.tf>
2022-09-20 17:41:49 +02:00
Joas Schilling 1f2e3c9a4f
Adjust coding style
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-08-05 13:33:24 +02:00
Thomas Citharel b6dd2e3318
Resize maximum dimensions for pictures coming from SocialApiService
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-05-16 20:10:27 +02:00
John Molakvoæ 05ffba9987
Merge pull request #2729 from nextcloud/optimize-social-search 2022-05-04 17:19:02 +02:00
call-me-matt 991cc65f0f
optimize search for contacts with social data
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2022-05-04 13:15:08 +02:00
Thomas Citharel 1b11e81c5b
Make sure URLs for social avatars of contacts are actual URLs
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2022-04-24 16:59:29 +02:00
John Molakvoæ 9b82bd312b
Add testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2022-03-15 17:08:58 +01:00
Daniel Opitz 8046bc1bb8 don't urlencode protocol in XingProviderTest
Signed-off-by: Daniel Opitz <git@copynpaste.de>
2021-11-08 12:13:04 +01:00
Daniel Opitz b01309bdb5 fix scope of anonymous function in XingProviderTest
Signed-off-by: Daniel Opitz <git@copynpaste.de>
2021-11-08 11:37:59 +01:00
Daniel Opitz e4546dba37 allow special chars for xing profile image
Signed-off-by: Daniel Opitz <git@copynpaste.de>
2021-11-07 14:38:53 +01:00
Julius Härtl 8ece6e064d Replace any string value with a nullable network for the fallback to match the first social service
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2021-07-16 08:19:45 +00:00
John Molakvoæ (skjnldsv) da9a5415a1
Properly check for circles version
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-04 08:52:38 +02:00
John Molakvoæ (skjnldsv) b3ae06f371
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-06-01 08:19:57 +02:00
dependabot[bot] 2a3950e425
Bump nextcloud/coding-standard from 0.3.0 to 0.5.0
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[bot] <support@github.com>
2021-03-16 09:54:14 +01:00
John Molakvoæ 9d3cc8f44b
Merge pull request #2081 from nextcloud/fix/twitter-uri
adapted twitter uri
2021-02-23 08:50:56 +01:00
call-me-matt 0c17c24236
add user agent
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2021-02-23 00:04:09 +01:00
call-me-matt b4b7ad6caa
adapted twitter uri
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2021-02-22 22:33:35 +01:00
John Molakvoæ (skjnldsv) bf48bcd066
Make sure twitter returns the raw static html page so we can get the profile picture properly
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2021-01-11 12:35:25 +01:00
Julius Härtl 6d7fd245a5
Fix generating the redirect url
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2020-12-11 16:12:49 +01:00
leith abdulla 3d6bcd3bf9 vcard should only have 1 photo field when adding/removing photos
when adding photo fields through the social api service, an extra photo
field is created for vcard version 3.0 due to setting a field as empty
instead of unsetting it all together

when removing photo fields, this empty photo field is left untouched

thus, syncing photos to address book clients can be buggy as most
address book clients do not properly iterate through all photo fields to
display the contact photo

Signed-off-by: leith abdulla <online-nextcloud@eleith.com>
2020-11-07 08:13:47 -08:00
leith abdulla ca1c40a8ae unit tests for all providers
this commit adds unit tests for all providers while also reducing some
redundancy in looking up social fields

minor feedback was addressed as well as some minor bugs fixed

Signed-off-by: leith abdulla <online-nextcloud@eleith.com>
2020-11-04 11:10:50 -08:00
leith abdulla da321c1451 linting, unit tests, comment fixes
Signed-off-by: leith abdulla <online-nextcloud@eleith.com>
2020-11-01 19:54:19 -08:00
John Molakvoæ 96f05d6a5c
Merge pull request #1745 from call-me-matt/enh/social-chunks 2020-09-11 12:28:56 +02:00
call-me-matt ba67a50ece
perform sanity checks
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2020-09-06 00:48:04 +02:00
dependabot[bot] 8cdccc3570
Bump christophwurst/nextcloud_testing from 0.7.0 to 0.10.0
Bumps [christophwurst/nextcloud_testing](https://github.com/ChristophWurst/nextcloud_testing) from 0.7.0 to 0.10.0.
- [Release notes](https://github.com/ChristophWurst/nextcloud_testing/releases)
- [Commits](https://github.com/ChristophWurst/nextcloud_testing/compare/0.7.0...0.10.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-09-04 20:36:30 +02:00
John Molakvoæ (skjnldsv) d3f883752f
Improve performance, sort contacts, exclude read-only and exclude already selected ones
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-08-21 10:05:42 +02:00
call-me-matt 1831bc4470
update social avatars in chunks
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2020-08-14 12:25:04 +02:00
call-me-matt 973c28825b
allowing for background updates of social avatars
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2020-08-05 00:23:06 +02:00
John Molakvoæ (skjnldsv) fd91fabc64
Allow to get direct contact route
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-08-03 12:05:50 +02:00
matthias e84571f003
Allow for avatar downloads from social networks
Signed-off-by: call-me-matt <nextcloud@matthiasheinisch.de>
2020-07-25 09:40:05 +02:00
John Molakvoæ (skjnldsv) 8cd975f325
Fix syntax
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-07-09 17:30:29 +02:00
John Molakvoæ (skjnldsv) 014d0ced64
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-04-17 15:45:29 +02:00
John Molakvoæ (skjnldsv) 8fe072b26b
Cleanup old unused tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2020-03-03 10:48:29 +01:00
dependabot-preview[bot] 213a1fc421
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0.
- [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases)
- [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-08 17:48:12 +01:00
Greta Doci 469a3fd50e fix test
Signed-off-by: Greta Doci <gretadoci@gmail.com>
2019-10-17 14:37:59 +02:00
John Molakvoæ (skjnldsv) a806e77cb6
Implement our own initialStateService for 15
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-10-03 10:37:58 +02:00
John Molakvoæ (skjnldsv) 677003d1b6
Add TZ & LANG
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-09-27 08:18:51 +02:00
John Molakvoæ (skjnldsv) dd0a064868
Move to global eslint
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-09-26 18:46:38 +02:00
John Molakvoæ (skjnldsv) fa0315a043
Fix tests
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-02-13 10:35:57 +01:00
John Molakvoæ (skjnldsv) b299531e40
Travis bump
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2019-01-23 12:47:27 +01:00