Roland Häder
adb4aea6ad
Changes:
...
- added some type-hints
- replaced most double-quotes (only Diaspora.php, later more) with single
- added some documentation
- normalized indenting in Diaspora.php (I hope I got all?)
2022-06-18 05:03:10 +02:00
Roland Häder
a770634b95
Ops, wrong type
2022-06-17 17:18:31 +02:00
Roland Häder
36d56a4041
Continued:
...
- changed back to 'return false;' as other methods heavily rely on false instead
of an empty array as pointed out by @heluecht@pirati.ca
- $fetched_contact should be initialized as an empty array, let's not make this
code more crazier than it already is (see APContact::getByURL())
2022-06-17 17:18:31 +02:00
Roland Häder
605e7d55b3
Continued:
...
- added more type-hints
- some methods in Diaspora returned void but integer was documented so I
changed it to -1 to have a proper type-hint
2022-06-17 17:18:31 +02:00
Michael
62367923e0
Fix several notices
2022-04-11 18:57:30 +00:00
Philipp
04866195b4
Remove accept parameter for head/post again
2022-04-03 19:33:09 +02:00
Philipp
e299fc67c8
Introduce "accept_header" as specific argument to the http client
2022-04-02 21:16:53 +02:00
Philipp
73c3b21665
Move ACCEPT constants to own "enum" class
2022-04-02 20:26:11 +02:00
Michael
1fae0123ec
Some more "accept" parameters are added
2022-03-29 06:24:20 +00:00
Michael
fb13890341
Added parameter values
2022-03-12 15:27:56 +00:00
Michael
56cd98b38b
Further improved logging
2022-03-12 07:48:31 +00:00
Michael
c1bb1cf0fc
Improved logging
2022-03-12 07:34:30 +00:00
Michael
5a16a424ac
Issue 11309: improved check for wanted posts
2022-03-12 07:08:10 +00:00
Michael
f264923cad
Issue 11309: Check if a post is wanted
2022-03-11 14:00:05 +00:00
Hypolite Petovan
52f5d924b7
Replace remaining instances of DBA::update('contact') with Contact::update()
...
- This was breaking the synchronisation between the contact and user-contact tables
2022-02-24 09:35:54 -05:00
Michael
29d83c0ffb
Block communication with Diaspora for communities
2022-02-15 07:08:02 +00:00
Michael
b857c26999
Use "account-type" instead of "page-flags"
2022-02-09 05:56:12 +00:00
Michael
ad526f5ad2
set the post-type to "poll" for incoming poll posts
2022-01-23 05:50:39 +00:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
...
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Michael
a97bfb512a
Issue 11104: Don't cann the addons on Diaspora reshare
2021-12-20 21:16:00 +00:00
Michael
d6c97dbde2
Fix attachment handling
2021-12-08 13:32:20 +00:00
Michael
4a90e6b1f0
Test code removed
2021-12-02 06:36:09 +00:00
Michael
bd2ee581d3
Diaspora reshares via API are fixed now
2021-12-02 06:33:19 +00:00
Philipp
68046573a4
Restructure Cache to follow new paradigm
2021-10-26 22:11:06 +02:00
Hypolite Petovan
9935e8e711
Remove event.adjust field
...
- It was confusing and introduced complexity that wasn't worth the unclear gain
2021-10-03 13:42:32 -04:00
Michael
9961943b73
Code Style: Replace "AS" with "as"
2021-10-03 10:34:41 +00:00
Tobias Diekershoff
8dc4499bcf
Merge pull request #10797 from annando/diaspora-deprecated
...
Replaced deprecated code from the Diaspora implementation
2021-10-02 19:19:40 +02:00
Michael
e5ffda3478
Replaced deprecated code from the Diaspora implementation
2021-10-02 17:11:54 +00:00
Michael
3dddea96fa
Merge remote-tracking branch 'upstream/2021.09-rc' into user-contact
2021-09-18 20:27:24 +00:00
Philipp
644f312896
Fix various Notices
2021-09-18 12:51:06 +02:00
Michael
9c14eb0c6b
Use centralized function to update contact entries
2021-09-10 18:21:19 +00:00
Michael
ce6f6978bd
Use the correct function is adviced ...
2021-09-03 04:20:32 +00:00
Michael
64fd94fc74
Issue 10651: remote comments appeared as own posts
2021-09-02 05:57:50 +00:00
Philipp
13a91e63aa
Rename DI::httpRequest() into DI::httpClient()
2021-08-25 21:54:54 +02:00
Philipp
2356221aba
Fixup HTTP headers for httpClient requests
2021-08-25 14:22:43 +02:00
Michael
56c00ea42d
Handles PHP Notice: Undefined index: addr in src/Protocol/Diaspora.php on line 3091
2021-08-10 03:50:43 +00:00
Michael
eec6cdf01b
Avoid a database query when possible
2021-08-05 08:51:39 +00:00
Michael
835152d418
Simplified signature creation
2021-08-05 08:42:46 +00:00
Michael
1c5baddcd2
Don't use the system user for participation messages
2021-08-04 12:35:03 +00:00
Michael
58531a2748
Fix tests
2021-05-31 20:02:53 +00:00
Michael
be7a01f086
Fix commenting on mobile to Diaspora
2021-05-31 19:39:50 +00:00
Michael
74f3c885bf
use "random_bytes" instead of "openssl_random_pseudo_bytes"
2021-05-11 13:12:12 +00:00
Michael
c840ee82af
Avoid empty posts on Diaspora
2021-04-30 22:35:16 +00:00
Michael
639d5373e0
Add atachments to body for Diaspora and DFRN
2021-04-29 21:05:22 +00:00
Michael
c4705a33c0
Removed unneeded stuff
2021-04-26 14:10:16 +00:00
Michael
9afa3610cf
Adding media attachments to Diaspora posts if they are only attached and not embedded in the body
2021-04-26 10:49:57 +00:00
Michael
8685e5ca32
Reworked media handling
2021-04-26 06:50:12 +00:00
Michael
688e056ad1
"post-reason" ends double usage of "post-type"
2021-04-07 06:02:06 +00:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
Michael
9e87dcb25b
We now set the protocol in "gserver" on receiving as well
2021-03-10 22:31:33 +00:00
Michael
4dfd91dbbf
Use the system user for uid=0
2021-02-21 11:47:03 +00:00
Michael
454fbc8ad7
Queries without indexes
2021-02-21 10:37:15 +00:00
Michael
890d1057d2
No implicit mention for top level Diaspora comments
2021-02-16 07:20:41 +00:00
Michael
d2ea3eabfb
Replace legacy file/category handling
2021-01-21 07:16:41 +00:00
Michael
68502daed0
New post class in protocol and worker classes
2021-01-16 04:14:58 +00:00
Michael
ca16a4892b
The item view is completed, unneeded fields removed
2021-01-13 07:23:57 +00:00
Michael
83266b87af
Create plink if missing
2021-01-11 20:14:17 +00:00
Michael
2987070d93
Improved direction and protocol detection
2021-01-09 12:59:30 +00:00
Michael
c210e0b97f
Issue 9657: Check the age of an item
2020-12-14 00:00:10 +00:00
Michael
0eb4a600b0
Delay unprepared posts
2020-12-13 12:47:49 +00:00
Michael
a43059df27
Relay posts with the original protocol
2020-12-11 06:35:38 +00:00
Hypolite Petovan
54aef550c5
Remove superfluous mentions of parent-uri in Protocol\Diaspora
...
- Address part of https://github.com/friendica/friendica/issues/9252#issuecomment-729171051
2020-11-17 17:54:07 -05:00
Hypolite Petovan
a69c98e32f
Merge pull request #9535 from annando/ap-relay
...
Relay code reworked to support AP delivery
2020-11-15 20:27:08 -05:00
Michael
0384bf3e76
Relay code reworked to support AP delivery
2020-11-15 23:28:05 +00:00
Hypolite Petovan
0f2a5daf09
Replace confusing uses of item.parent-uri with expected item.thr-parent
2020-11-14 10:08:50 -05:00
Michael
43749c3069
The "attach" field is now deprecated
2020-11-07 08:22:59 +00:00
Michael
d383f49f1e
The "[attach]" field is replaced by the "post-media" table
2020-11-06 04:14:29 +00:00
Michael
5ac73a847d
Functions renamed
2020-10-29 08:48:08 +00:00
Michael
e548d647aa
New table for attached media files
2020-10-29 05:20:26 +00:00
Michael
9b1918c650
Don't accept ignored author via relay
2020-10-02 03:35:22 +00:00
Michael
648e8a00a4
Use the right table ...
2020-09-30 19:05:19 +00:00
Michael
e26d73393e
New "relay" class / check of incoming popsts from DFRN and Diaspora
2020-09-30 17:37:46 +00:00
Michael
08fa5f0c19
We now set the "global" direction
2020-09-14 17:48:57 +00:00
Michael
5a41cd437d
Add additional direction types
2020-09-13 14:15:28 +00:00
Michael
2cbc935944
Renamed function
2020-08-06 10:31:05 +00:00
Michael
d4f7bfa676
New "fcontact" model class
2020-08-06 10:27:06 +00:00
Michael
1f164f66f4
Simplify contact search
2020-08-05 12:35:38 +00:00
Michael
0c73531da1
Poco and gcontact (mostly) removed
2020-08-01 16:15:18 +00:00
Michael
9b86f40a5f
Store avatar cache fields only when needed
2020-07-25 11:48:52 +00:00
nupplaPhil
657d08f09f
Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull"
2020-07-21 03:15:53 -04:00
nupplaPhil
1aa07f87a4
Make "HTTPRequest::fetchUrl" dynamic
2020-07-21 03:04:58 -04:00
nupplaPhil
8793096c16
Make "HTTPRequest::post" dynamic
2020-07-21 03:02:51 -04:00
nupplaPhil
5344efef71
Move post/curl/fetchUrl/fetchUrlFull to own class "Network\HTTPRequest"
2020-07-21 02:56:10 -04:00
Hypolite Petovan
25b3fa83fc
Rename PageInfo::appendToBody to searchAndAppendToBody
2020-07-17 19:15:43 -04:00
Hypolite Petovan
631095eefd
Merge pull request #8883 from annando/replace-getdetails
...
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
2020-07-15 13:49:27 -04:00
Michael
fc0312451d
Changed parameter order for getByURL
2020-07-15 17:06:48 +00:00
Michael
d9c6a46ffe
Replaced "getDetailsByURL" with "getByURL/getByURLForUser"
2020-07-15 04:42:04 +00:00
Hypolite Petovan
3e25fc3a72
Replace *_page_info function calls with Content\PageInfo equivalent
2020-07-14 10:15:04 -04:00
Michael
1f88bb8beb
Fix the plink for reshared Diaspora posts
2020-07-09 19:19:18 +00:00
Michael
c947b7f211
"print_r" in logging replaced / obsolete stuff removed
2020-06-29 20:22:00 +00:00
Michael
de19f94aca
Prevent delivering AP comments to Diaspora
2020-06-27 12:18:36 +00:00
Hypolite Petovan
912ff069c0
Update getShareOpeningTag::getShareOpeningTag method signature
...
- Optional parameter $guid is now at the end
- Always provided parameter $posted is now mandatory
2020-06-21 09:42:37 -04:00
Hypolite Petovan
1f20111c80
Replace share_header calls with BBCode::getShareOpeningTag
2020-06-18 08:53:57 -04:00
Michael
973abb6196
Replace "id = parent" checks with "gravity" checks
2020-05-27 12:19:06 +00:00
Michael
efb1c630fd
Fix warnings ("Divide by zero" and "key parameter is not a valid public key")
2020-05-18 02:58:08 +00:00
Michael
e3c08215f6
Fixed notice because of missing field
2020-05-07 07:34:00 +00:00
Michael
806f4a0142
Added logging
2020-05-06 19:00:56 +00:00
Michael
7dea1ff6bd
Issue 8586 again: Don't transmit participations
2020-05-06 17:30:21 +00:00
Michael
b9ee46824f
Added missing field
2020-05-06 15:37:04 +00:00