Commit graph

345 commits

Author SHA1 Message Date
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
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
6175f07adf Issue 4475: Don't create empty twitter quotes 2018-08-26 04:31:29 +00: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
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
8f562a4b22 Avoid empty post 2018-08-02 05:09:37 +00:00
Roland Häder
93fb5a6151 [cross] Moved CONTACT_* constants to class Friendica\Model\Contact (#670)
* [cross] Moved CONTACT_* constants to class Friendica\Model\Contact

* Other PR request:
- renamed Contact::CONTACT_IS_* to just plain Contact::* :-) (MrPetovan)
2018-07-28 01:34:38 -04:00
Hypolite Petovan
522e8e58c2 [multiple] Rename dbesc to DBA::escape 2018-07-23 15:35:22 -04:00
Hypolite Petovan
f4ad0d3721 Rename DBA::is_result to DBA::isResult 2018-07-23 15:02:59 -04:00
Hypolite Petovan
332ea212b5 Rename DBM method calls to DBA method calls 2018-07-23 15:02:10 -04:00
Hypolite Petovan
57505bdf82 [multiple] Rename Friendica\Database\dba to Friendica\Database\DBA 2018-07-20 08:20:48 -04:00
9463696159
Merge pull request #650 from annando/post-type
We don't store the "type" parameter anymore
2018-07-20 12:53:12 +02:00
Hypolite Petovan
abc76a42ae [multiple] Move \dba to \Friendica\Database\dba
- Updated use statement lists
2018-07-19 22:18:02 -04:00
Michael Vogel
3940618a4a
Merge pull request #633 from MrPetovan/task/4889-move-config-to-config
Move configuration to config/
2018-07-18 11:04:38 +02:00
cdd510909f We don't store the "type" parameter anymore 2018-07-18 05:49:41 +00:00
Michael Vogel
e74ccf35c9 Some notices had been removed / expiring of item related tables in twitter (#643)
* Some notices had been removed / expiring of item related tables in twitter

* Some more ...
2018-07-15 14:40:20 -04:00
Hypolite Petovan
6c443aeaf0 Move addon-specific config to config/addon.ini.php 2018-07-11 22:56:52 -04:00
Hypolite Petovan
cb4f60c257 [twitter] Add addon config 2018-07-10 08:41:31 -04:00
Michael Vogel
475299e642 Avoid warnings in addons (#639)
* Avoid warnings in addons

* And some warnings removed

* And more ...

* And some more ...

* Added comment

* And again ...

* And again ...

* Partly reworked "newmemberwidget"

* And more warnings ...

* The next round
2018-07-10 08:30:23 -04:00
a39b9b47d2 Some gravity clarification 2018-06-28 05:21:57 +00:00
0d204c07da More item calls have been converted to current functions 2018-06-18 05:15:46 +00:00
c66dcf96ac New user based item function 2018-06-17 17:04:23 +00:00
ef0a2f6f8d Don't store the twitter protocol content by default 2018-06-17 06:26:22 +00:00
b41bb3adfb Merge remote-tracking branch 'upstream/develop' into item-abstraction 2018-06-17 06:23:56 +00:00
392bb7d5aa Remove direct item sql queries 2018-06-17 06:20:47 +00:00
Hypolite Petovan
6b77771343
Merge pull request #623 from annando/new-item-uri
New function for generating item URIs
2018-06-16 11:26:12 -04:00
e1714de8ad New function for generating item URIs 2018-06-16 06:46:25 +00:00
Hypolite Petovan
fb0e99ba0e [twitter] Add type hint to twitter_fetchparentposts 2018-06-15 20:54:19 -04:00
Hypolite Petovan
b5f687f816 [twitter] Cleanup use list 2018-06-15 20:54:07 -04:00
Hypolite Petovan
9e73131493 [twitter] Fix PHP 7.2 notice in twitter_fetchparentposts 2018-06-15 20:53:50 -04:00
Johannes Schwab
7f3364b53c Catch TwitterOAuthException thrown by Abraham/TwitterOAuth 2018-06-04 20:52:47 +02:00
dff690d633 Added detailed comment for option 2018-06-02 10:30:43 +07:00
c8e09efef1 Twitter: Fix so that public contacts are created 2018-05-09 15:40:07 +00:00
a5a3a64b1a "Remote-self" is now working for Twitter as well 2018-05-04 21:13:28 +00:00
Hypolite Petovan
aaf031258f Move Model\Item::getPlaintextPost to Model\ItemContent::getPlaintextPost 2018-04-21 20:50:58 -04:00
Hypolite Petovan
776aae9147 Move BBCode::toPlaintext to Item::getPlaintextPost 2018-04-21 04:28:02 -04:00
476cb92a3b Only add picture link under conditions 2018-04-02 07:12:43 +00:00
b3236d69a1 Twitter: Code for aending media to Twitter has been optimised 2018-04-02 05:42:33 +00:00
34ee3b9a28 Improved timeout values/Posting local files 2018-03-31 18:55:17 +00:00
c7aac4178c Handle exception when posting pictures to twitter 2018-03-31 06:03:56 +00:00
d83dbb3172
Merge pull request #521 from MrPetovan/bug/4409-twitter-exception
[twitter] Add Exception handling/Fix OAuth usage
2018-02-08 07:07:06 +01:00
Hypolite Petovan
471b3788eb [twitter] Perform mention/hashtags replacements before expanding links
- Move mention/hashtags replacement out of URL existence check
2018-02-07 22:43:22 -05:00
Hypolite Petovan
91a9d5e2ef [twitter] Remove unused function parameter in twitter_expand_entities
- Remove duplicate assignment to $tags
2018-02-07 22:42:27 -05:00
Hypolite Petovan
afae967c5d [twitter] Add POST parameter checks
- Add Exception handling
2018-02-07 20:20:42 -05:00
Hypolite Petovan
760abd8694 [twitter] Fix TwitterOauth library usage
- Use array result instead of object
2018-02-07 20:20:06 -05:00
8b049a96bd Direct calls to the database are replace by class calls to the item class 2018-02-06 14:24:24 +00:00
Hypolite Petovan
1900da6c42 Move Temporal::convert() to DateTimeFormat::convert() 2018-02-03 11:40:39 -05:00
Hypolite Petovan
cbc89d147d Add Temporal::utc() shorthand to Temporal::convert() 2018-02-03 11:40:39 -05:00
Hypolite Petovan
e4f32f8ac8 Add Temporal::utcNow() 2018-02-03 11:40:38 -05:00
Hypolite Petovan
6d23de1bdb Add Temporal::MYSQL constant 2018-02-03 11:40:38 -05:00
Hypolite Petovan
b24690e8df Refactor datetime_convert() into Temporal::convert() 2018-02-03 11:40:38 -05:00
633c54d642 Quit if twitter addon is not configured 2018-01-30 18:52:06 +00:00
Hypolite Petovan
3a9612fb35
Upgrade yet more calls with TwitterOAuth 2018-01-29 10:42:12 -05:00
Hypolite Petovan
de10d06e26 Upgrade TwitterOAuth calls in twitter addon 2018-01-29 08:15:43 -05:00
Michael Vogel
ffa36da2c9
Merge pull request #505 from MrPetovan/task/4116-move-twitteroauth-to-composer
Move TwitterOAuth to composer Part 1: Twitter
2018-01-28 19:19:03 +01:00
Hypolite Petovan
d18bb44f8a Add explicit dependencies to twitter addon 2018-01-28 12:17:19 -05:00
Hypolite Petovan
01738518a2 Fix wrong variable name in twitter addon 2018-01-28 11:41:58 -05:00
229b21d7b2 New methods in item class 2018-01-28 11:19:38 +00:00
Hypolite Petovan
c0836419b7 Update Twitter addon documentation, file comment
- Fix formatting
2018-01-27 23:20:09 -05:00