Roland Häder
cfa575b8e5
Changes:
...
- added missing type-hints
- added documentation
- removed parameter $baseURL while it can be locally get the same way but
lesser parameter
- used ActivityNamespace::SALMON_ME
- changed double-quotes to single
2022-08-12 14:01:40 +02:00
Michael
b6da15557b
The post-reason / protocol is now filled in most cases
2022-07-31 15:54:35 +00:00
Michael
0971bcf165
Make the tests happy
2022-07-29 16:05:04 +00:00
Roland Häder
37bda3e5fb
Changes:
...
- fixed wrong type-hint uid => int
- added returned type-hint
- added some documentation
- formatted arrays a bit
2022-07-29 00:08:38 +02:00
Michael
b63ad63c29
Config for receiver / fix fatals
2022-07-28 21:16:42 +00:00
Hypolite Petovan
650e05bcb5
Merge pull request #11758 from Quix0r/fixes/wrong-variable-name
...
Fixed variable name + used empty()
2022-07-20 07:55:38 -04:00
Roland Häder
4b5ae32ec6
Changes:
...
- ops, fixed variable name (thanks to @annando)
- also used empty() for an empty array (and false/null)
2022-07-20 11:54:28 +02:00
Michael Vogel
fc52296a77
Merge branch 'develop' into diaspora
2022-07-20 08:12:30 +02:00
Michael
138a15404f
Fix processing of incoming Diaspora messages
2022-07-20 05:38:53 +00:00
Roland Häder
1fbda27aad
Changes:
...
- rewrote a lot local variables to an array and returned it instead of an
anonymous array
- added more debug/warning logging in case something went wrong -> lesser guessing! ;-)
- changed double-quote to single
2022-07-20 01:08:15 +02:00
Roland Häder
2ef0566ba5
Fixed:
...
- "Undefined variable: contact in .../src/Protocol/Diaspora.php on line 4097
Trying to access array offset on value of type null in .../src/Protocol/Diaspora.php on line 4097"
- see https://github.com/friendica/friendica/issues/11632#issuecomment-1189465336
2022-07-19 23:46:09 +02:00
Michael
2ddf37f32d
Emergency fixes to fix a bunch of fatal errors
2022-07-17 11:47:12 +00:00
Roland Häder
7cbb818c93
Set type-hint for parameter $data to SimpleXMLElement as $fields in dispatch()
...
is the same and being handled over.
2022-06-18 05:19:24 +02:00
Roland Häder
89302d0843
Some outside code relies on returned "false"
2022-06-18 05:06:18 +02:00
Roland Häder
aaf5c323b6
Fixed indenting
2022-06-18 05:04:14 +02:00
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