Commit graph

560 commits

Author SHA1 Message Date
c0892ce696 Twitter: Support for real reshares added 2020-10-11 12:19:58 +00:00
94b41e0859
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3) 2020-10-10 21:29:27 +02:00
1848cf79fa Twitter: Offer the disconnect button when the account data is invalid 2020-10-05 06:47:35 +00:00
62c6b49782 twitter IT translation THX Sylke Vicious 2020-09-18 07:56:07 +02:00
cc7a1b181c Rearranged order for the "updateAvatar" function 2020-07-25 11:49:44 +00:00
Michael Vogel
2c69a9c359
Merge pull request #1006 from MrPetovan/task/curl_DI
Introduce "HTTPRequest" class
2020-07-25 09:50:01 +02:00
3f84caeec5 Unneeded "info" messages removed 2020-07-23 03:48:52 +00:00
nupplaPhil
19b2c8d833 Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull" 2020-07-21 03:32:23 -04:00
nupplaPhil
90193bd02b Move "HTTPRequest::finalUrl" dynamic 2020-07-21 03:31:48 -04:00
nupplaPhil
f36ca4fcf4 Move "Network::finalUrl" to "HTTPRequest" class 2020-07-21 03:31:16 -04:00
nupplaPhil
40ff1d7fda Make "HTTPRequest::fetchUrl" dynamic 2020-07-21 03:30:37 -04:00
nupplaPhil
9640142a72 Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest" 2020-07-21 03:27:52 -04:00
a80e9154c5 [various] Rename PageInfo::appendToBody to searchAndAppendToBody 2020-07-18 11:38:11 -04:00
f7cb9b3b81 Changed default value for "getIDForURL" 2020-07-16 15:44:32 +00:00
b5f14cb559 [various] Replace *_page_info function calls with Content\PageInfo equivalent 2020-07-14 10:17:17 -04:00
18bb5e4992 [twitter] Fix media upload failure logging
- Address https://github.com/friendica/friendica/issues/8473#issuecomment-653332270
2020-07-03 11:06:40 -04:00
44bf674727 [twitter] Improve mobile profile URL probe 2020-06-24 21:29:44 -04:00
Michael Vogel
94c658b105
Merge pull request #990 from MrPetovan/task/share-block-guid
[various] Update getShareOpeningTag::getShareOpeningTag method signature
2020-06-23 21:26:02 +02:00
ef21c83037 [twitter] Fix return value of twitter_user_to_contact()
- Simplify check in twitter_fetch_own_contact()
2020-06-21 16:33:18 -04:00
b07e4bd59c [twitter] Add HTTP error code handling 2020-06-21 16:32:37 -04:00
9d2c8902d3 [twitter] Improve logging for actions 2020-06-21 16:14:08 -04:00
c720acbd8d [twitter] Update getShareOpeningTag::getShareOpeningTag method signature 2020-06-21 09:48:53 -04:00
a23908723a [twitter] Replace share_header calls with BBCode::getShareOpeningTag 2020-06-18 11:25:06 -04:00
67053496a7 twiter addon ZH CN translation update THX steve jobs 2020-06-15 09:31:51 +02:00
Michael Vogel
86179eb3f4
Merge pull request #986 from MrPetovan/task/twitter-ass-probe-detect-hook
[twitter] Add probe_detect hook function
2020-06-08 08:37:26 +02:00
6ce762010e [twitter] Fix contact image handling in twitter_fetch_contact 2020-06-07 16:49:47 -04:00
03c2a30991 [twitter] Add a link to the quoted tweet when we don't add a share block 2020-06-06 19:27:50 -04:00
2081ee6040 [twitter] Add probe_detect hook function 2020-06-06 15:05:55 -04:00
351ff48ef8 Twitter: set the baseurl and the gsid 2020-05-23 17:51:41 +00:00
b406d737b5 Replacing numberic values with constants for the BBCode conversion 2020-05-16 16:48:08 +00:00
Michael Vogel
59cfb05c3a
Merge pull request #980 from annando/item-insert
Self merging, since @MrPetovan approved it - and it would otherwise create issues when not merged now.
2020-05-14 09:59:40 +02:00
5e397ad580 [twitter] Remove references to obsolete virtual field item.tag 2020-05-13 22:40:02 -04:00
00b1f69b7e Removed parameter from item::insert 2020-05-13 19:29:33 +00:00
Michael Vogel
4486c7bfd5
Update twitter/twitter.php
Co-Authored-By: Hypolite Petovan <hypolite@mrpetovan.com>
2020-04-25 23:23:57 +02:00
45e1dff8fd Added documentation 2020-04-25 18:21:31 +00:00
3814219b0c Twitter: Storing tags the new way 2020-04-25 17:56:14 +00:00
079e56fb1c [twitter] Use correct variable name for emptiness test in twitter_convert_share() 2020-04-04 12:36:33 -04:00
cb34593770
Merge pull request #973 from annando/notices
Fixing some notices
2020-04-04 15:31:13 +02:00
225243645e Fixing some notices 2020-04-04 11:15:13 +00:00
1df61e8dc2 [twitter] Rework twitter_expand_entities
- Uses Twitter-provided entity indices to avoid blanket string replacement and unwarranted tag search
2020-03-30 10:49:06 -04:00
ceff17469c [twitter] Add logging to item deletion 2020-03-10 18:55:55 -04:00
09bb49eef5 Twitter: Fetch the contact relation 2020-03-06 05:52:40 +00:00
65e4726718
Remove unneeded Config namespace usages 2020-01-19 22:50:43 +01:00
62d6f08fc1
Add missing Friendica\DI namespace to files (PHPStorm inspection) 2020-01-19 21:26:41 +01:00
75143e27b5
Move Config::set() to DI::config()->set() 2020-01-19 21:21:52 +01:00
1ce63185ab
Move Config::get() to DI::config()->get() 2020-01-19 21:21:12 +01:00
f2fc22227a
cleanup namespace usages for L10n 2020-01-19 16:31:47 +01:00
48fecb9a40
Move L10n::t() calls to DI::l10n()->t() calls 2020-01-19 16:31:46 +01:00
a26bfe79e9
Remove unused use statements & remove PConfig class 2020-01-18 17:02:59 +01:00
346bf125a7
Move PConfig::delete() to DI::pConfig()->delete() 2020-01-18 16:56:45 +01:00
febc835a2d
Move PConfig::set() to DI::pConfig()->set() 2020-01-18 16:54:49 +01:00
ea3a9052d8
Move PConfig::get() to DI::pConfig()->get() 2020-01-18 16:50:56 +01:00
2a35176588
Move PConfig::load() to DI::pConfig()->load() 2020-01-18 15:59:01 +01:00
2ca621a92a
Replace deprecated $a->page with DI::page() 2019-12-30 20:02:08 +01:00
335fcf670f
Remove deprecated App::getBaseURL() - process methods to DI::baseUrl()->get() 2019-12-27 21:55:17 +01:00
0775c28854
Remove deprecated App::getHostName() - process methods to DI::baseUrl()->getHostName() 2019-12-27 21:55:16 +01:00
99db3452e3
Refactor deprecated App::internalRedirect() to DI::baseUrl()->redirect() 2019-12-27 21:55:16 +01:00
5d4d175bf9
Introduce new DI container
- Adding Friendica\DI class for getting dynamic classes
- Replacing BaseObject::getApp() with this class
2019-12-27 21:55:14 +01:00
4f545974da Move Object\Image static methods to Util\Images 2019-11-01 21:24:47 -04:00
37e19d0c14
Merge pull request #907 from annando/twitter-logging
Added logging to twitter addon
2019-10-31 14:50:40 -04:00
d53d690f0d Added logging to twitter addon 2019-10-26 18:31:45 +00:00
Philipp Holzer
9bd0609625
Add docs 2019-10-25 00:10:19 +02:00
Philipp Holzer
46bccdc9e0
Move Activity/Namespaces defines to constants 2019-10-24 00:25:42 +02:00
e2c7578734 Fix notice in Twitter addon 2019-09-21 14:53:54 +00:00
14c6474980 Twitter: Better respect "create user" setting 2019-09-16 04:08:50 +00:00
e7d054c6d5 [twitter] Add quoted tweet URL if its body is unavailable (blocked, muted, deleted) 2019-09-12 21:48:02 -04:00
f96ff32b21 correction of wrong DE translation for the twitter addon 2019-09-07 08:10:25 +02:00
Philipp Holzer
4ab75e2e8c
Check twitter details before showing it 2019-09-03 18:37:27 +02:00
9523d4d9f1 added JA translation of twitter addon THX Ozero Dien 2019-08-29 06:33:44 +02:00
Philipp Holzer
0822bb59a3
php notice fixings
addons:
- bufferapp (missing errorcode)
- twitter (wrong field name 'nickname')
core:
- bbcode (incomplete attachementdata)
- crypto (uninitialized key)
2019-08-27 08:27:06 +02:00
f3804ee7dd Array instead of a string 2019-08-06 22:08:21 +00:00
e214c21025 Support for multiple picture posts 2019-08-06 05:41:49 +00:00
20ed3495b2 We now use the master branch of codebird 2019-08-04 12:16:56 +00:00
2e776253e0 Codebird library added 2019-08-04 08:21:18 +00:00
81addd92da Twitter: Import picture description 2019-07-29 15:51:33 +00:00
Philipp Holzer
5c6108b3cc
Dynamic config loading
- Move settings, defaults and dbstructure to directory 'static'
- Dynamic loading of config files (after the static loading)
- Filter out '-sample.config.php' and '-sample.ini.php' files
- Remove unnecessary ConfigFileManager
- Move ConfigFileLoader to Utils
- Add tests for multi-loading for INI, config and sample-filtering
2019-07-16 21:44:54 +02:00
a5c3ef99ef Don't store non federated contacts in gcontact 2019-07-02 17:55:03 +00:00
796ef5d507
Merge pull request #849 from annando/false-positive
Blockbot: Avoid false positives
2019-06-23 23:28:28 -04:00
5e6fcb1f95 [twitter] Fix undefined object notice 2019-06-17 09:05:14 -04:00
e52e6f7be2 And another good library 2019-06-12 09:07:30 +00:00
Philipp Holzer
8562422ee2
Move internal recursion-counter to the end of all cur/fetchUrl parameters 2019-06-10 14:34:53 +02:00
09967cc664 [various] Remove /display/{nick}/{id} URL structure publishing 2019-05-05 22:03:22 -04:00
f034f97f8a Remove the queue from the addons 2019-04-05 18:07:57 +00:00
b1b5815055 Removed useless stuff 2019-04-04 14:22:15 +00:00
d6578733be Replace the "Queue" mechanism with deferred workers 2019-04-04 14:14:55 +00:00
f226a42443 Twitter: Use the new reshare mechanism for retweets 2019-04-03 05:51:26 +00:00
c2970ad6d5 [various] Replace HTML string by structured array in jot_networks hook 2019-03-24 22:44:50 -04:00
c8a63f6b9c
Moving/Renaming ConfigCacheLoader to ConfigFileLoader 2019-03-24 22:52:43 +01:00
9b77fcf80b twitter addon EN GB translation THX Andy H3 2019-03-11 18:07:48 +01:00
ab0fdcd2cd Force priority for Twitter synchronisation 2019-03-03 04:47:16 +00:00
2e33d99f18
Moved method names & class 2019-02-18 01:22:09 +01:00
37dd8a938b
Merge pull request #803 from nupplaphil/config_refact
Config Refactoring
2019-02-06 10:52:02 -05:00
7aa0760742
Refactoring ConfigCacheLoader methods 2019-02-05 22:27:56 +01:00
2ba4c95f4b
Bugfixing Addon-config 2019-02-04 02:07:58 +01:00
0e264465ac
Split goaway to System::externalRedirectTo() and App->internalRedirect() 2019-02-04 01:50:39 +01:00
e825cbc7a1
renamed System::redirectTo to System::redirect 2019-02-04 01:50:30 +01:00
a1254b4c85
wrong indent 2019-02-04 01:50:17 +01:00
3d3a11fa46
Replaced goaway() with System::redirectTo() 2019-02-04 01:50:15 +01:00
b541efc5e6
3) Introducing ConfigFactory 2019-02-03 22:22:03 +01:00
08206fdcc0 Merge branch 'master' into develop 2019-01-21 10:04:26 +01:00
72b18e34e0 [twitter] Use original URL for link display 2019-01-06 00:05:20 -05:00
c27b1cb66f Replace deprecated Addon::*registerHook by Hook::*register 2018-12-26 10:20:18 -05:00
85b5715a44 Remove require include/* 2018-12-26 00:36:43 -05:00
Michael Vogel
742fffe7e7
Merge pull request #779 from MrPetovan/task/remove-x
Replace x() by !empty() or defaults()
2018-12-01 16:34:08 +01:00
Michael Vogel
bf587a8308
Merge pull request #776 from MrPetovan/task/normalize-bbcode-hashtags
[various] Remove useless rawurlencode calls
2018-12-01 16:29:25 +01:00
d836593a3b Replace x() by !empty() or defaults()
- Remove extraneous parentheses around !empty()
2018-11-30 09:11:56 -05:00
b655c18adb [twitter] Update config file style/name 2018-11-25 02:16:41 -05:00
8f72b9ca9a [various] Remove useless rawurlencode calls 2018-11-22 09:39:38 -05:00
1375847d54
Merge pull request #774 from annando/fork-check
Added a hook to check if the hook needs to be forked at all
2018-11-10 21:01:23 -05:00
053fb67a98
[twitter] Fix wrong namespace for getTags
Fixes https://github.com/friendica/friendica/issues/6109
Addresses https://github.com/friendica/friendica/issues/5913#issuecomment-437628443
2018-11-10 20:52:57 -05:00
2d745b11d7
Merge pull request #775 from annando/twitter-notice
Avoid a notice in twitter.php
2018-11-10 20:49:05 -05:00
d1919f0497 Added a hook to check if the hook needs to be forked at all 2018-11-10 16:20:19 +00:00
Adam Magness
4a667f640f Function renamed
update function calls
2018-11-09 13:32:45 -05:00
Adam Magness
1ac32c622e Functions moved to Strings class
implement functions from Strings class
2018-11-09 07:09:15 -05:00
Adam Magness
9079480d4a move to Renderer class
update functions calls for new Renderer class.
2018-10-31 10:55:15 -04:00
Adam Magness
c9a8974165 Logger Levels
update logger levels
2018-10-30 09:48:09 -04:00
Adam Magness
49eff56e5d Core Logger
implement log() function.
more to squash


Core Logger Class

implement log() function
2018-10-29 19:40:18 -04:00
38ff8b5f88 Merge remote-tracking branch 'upstream/develop' into twitter-notice 2018-10-27 13:03:03 +00:00
6bc8103ca2 Avoid a notice in twitter.php 2018-10-27 12:40:59 +00:00
d197bf4c2b
Bugfix - Replacing goaway() 2018-10-24 20:09:36 +02:00
9222681d18 [twitter] Add missing parameter to converShare 2018-10-21 08:45:53 -04:00
18a742546c [twitter] Shorten foreign share mention 2018-10-17 22:28:28 -04:00
4eff144765 [twitter] Add support for $is_quote_share in twitter_convert_share 2018-10-17 08:19:47 -04:00
8153276e63 [twitter] Add custom handling for foreign reshares 2018-10-17 01:15:15 -04:00
2f91ce87b7 [twitter] Add custom handling for mentions 2018-10-17 01:14:57 -04:00
da86118283 [twitter] Fix Undefined property: stdClass::$media_id_string notice 2018-10-14 07:10:08 -04:00
3f6239bb2b some more get_hostname to getHostName changes 2018-10-11 13:24:39 +02:00
1454abfdb4
rename App Methods
- rename get_baseurl() to getBaseURL()
2018-10-10 00:04:49 +02:00
Hypolite Petovan
9e0c2ea01a [various] Update "mrpetovan" email address 2018-09-15 19:30:59 -04:00
Michael Vogel
bec71230b2
Merge pull request #735 from MrPetovan/bug/4014-twitter-use-rich-text-quote-tweets
[twitter] Use rich text for quote tweet
2018-09-12 18:58:20 +00:00
Hypolite Petovan
2dfb6b497e [twitter] Source format twitter_expand_entities 2018-09-11 22:13:22 -04:00
Hypolite Petovan
78eb36a1bb [twitter] Use rich text for quote tweet 2018-09-11 22:07:51 -04:00
Hypolite Petovan
70fba8a985 [twitter] Fix external link picture
- Ensure the media url is the same as one of the external links url
before showing only a picture
2018-09-11 21:37:54 -04:00
a2cca24260 Avoid notice due to missing $ 2018-09-07 05:23:54 +00:00
aa34316be8 Typo 2018-09-03 21:58:21 +00:00
ee1e87c5c4 Added some logging for Twitter to better analyse problems 2018-09-03 18:20:23 +00:00
8e5a0f8b17 And one notice removed for twitter 2018-08-29 12:59:00 +00:00
660cde02d2
Merge pull request #719 from annando/issue-4475
Issue 4475: Don't create empty twitter quotes
2018-08-26 07:47:45 +02:00
6175f07adf Issue 4475: Don't create empty twitter quotes 2018-08-26 04:31:29 +00:00
dcbf2f4416 NL translation THX JeroenED 2018-08-25 21:12:02 +02:00
564235debd Removed notices that still had been creeping around ... 2018-08-17 03:23:00 +00:00
Michael Vogel
28b699573c Use the Item class instead of DBA calls when possible (#705) 2018-08-15 07:23:53 +02:00
Michael Vogel
48e4475ad7 Remote self on Twitter will now only work with original content (#701) 2018-08-13 06:39:51 +02:00
Roland Häder
c8371bc521 Rewrite: (#680)
- replace usage of deprecated NETWORK_* with Protocol::*
2018-08-11 22:40:48 +02:00
Michael Vogel
eae3579c88 Notices in twitter removed (#689) 2018-08-09 01:05:27 +02:00
Hypolite Petovan
282906a658 [twitter] Keep original display URL after link expansion 2018-08-08 23:43:00 +02:00
c5d7ae716f PL translation twitter THX waldis 2018-08-06 14:15:46 +02:00
Hypolite Petovan
bda506fd2e [twitter] Fix Read Error with exif_imagetype() 2018-08-05 16:02:25 +02:00
Hypolite Petovan
6f0b79456e [twitter] Restore source storing in conversation table 2018-08-05 13:06:37 +02:00
Hypolite Petovan
1d3ec58bfb [twitter] Source formatting
- Add type hints
- Simplify hook (un)register notation
- Convert some double quotes to single quotes
2018-08-05 13:05:59 +02:00