Commit graph

216 commits

Author SHA1 Message Date
Hypolite Petovan
1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Michael
e0e2e45b91 Reduce the amount of "UpdateContact" worker calls 2022-12-28 14:56:12 +00:00
Michael
7c4b320f30 Cleanup work with the activity types 2022-12-26 15:08:46 +00:00
Michael
e05cbf46e1 Activity "Read" is now stored 2022-12-26 08:41:40 +00:00
Michael
ca12d1549b AP: We can now store received reports 2022-12-23 22:11:50 +00:00
Michael
9fe70af85a AP: Support for "move" and "accept" from gup.pe 2022-12-22 21:58:51 +00:00
Hypolite Petovan
607d26e906 Ward against empty JsonLD::fetchElement result in ActivityPub\Receiver::processTags
- Address https://github.com/friendica/friendica/issues/12011#issuecomment-1336478368
2022-12-10 11:38:42 -05:00
Michael
cdbfa34066 "View" activities are now ignored 2022-11-17 20:01:32 +00:00
Roland Häder
26e0469de7
Merge branch 'develop' into rewrite/gravity-constants 2022-10-18 16:34:40 +02:00
Michael
018858934b The priority is now a class constant 2022-10-17 05:49:55 +00:00
Roland Häder
da66730e4f
Rewrite:
- moved constants GRAVITY_* from boot.php to Friendica\Model\Item
- also rewrote some array initialization:

From:
````
<?php
$arr = [];
$arr['foo'] = "FOO";
````

To:
````
<?php
$arr['foo'] = "FOO";
````
- added a few type-hints
2022-10-15 00:44:06 +02:00
Michael
0d3aa681b4 The quote functionality is simplified 2022-10-09 21:16:36 +00:00
Michael
bde7283b04 Fix: Undefined array key "object_object_type" 2022-10-03 20:01:28 +00:00
Michael
a653c6350d Support for quoted links is added 2022-09-29 16:04:33 +00:00
Michael
b10496f4e9 Changed log level 2022-09-28 16:45:18 +00:00
Michael
d821afb418 Added logging of unexpected follow messages 2022-09-28 16:32:17 +00:00
Michael
f0d151932e Issue 11890: Don't use empty contexts 2022-09-06 14:08:25 +00:00
Michael
f22a4ba6f5 Be more tolerant when receiving messages 2022-09-04 07:39:09 +00:00
Michael
3e28d62bdb Fix receiving of reshared posts 2022-08-31 21:18:33 +00:00
Michael
f7b85092b0 Some more changed log levels 2022-08-31 05:01:22 +00:00
Michael
ceb88c10e6 Warnings/Errors reduced - improved relay processing 2022-08-27 08:08:58 +00:00
Michael
15d975f143 Avoid some database errors 2022-08-25 04:57:41 +00:00
Michael
d60d2caef6 Improved queue processing 2022-08-07 19:24:50 +00:00
Michael
87a945b295 More prevention of double processing of the same content 2022-08-06 17:06:55 +00:00
Michael
3463e34693 Don't always fetch parent posts 2022-08-03 04:51:57 +00:00
Michael
f2eec66240 Hopefully fixes loops during message processing 2022-08-03 03:38:03 +00:00
Michael
06a124338a Only store the inbox-queue on activated background processing 2022-07-31 08:10:47 +00:00
Michael
699152e15e Add more post reasons 2022-07-29 21:28:22 +00:00
Michael
b63ad63c29 Config for receiver / fix fatals 2022-07-28 21:16:42 +00:00
Michael
d12c9a8f58 Caching for fetched activities 2022-07-28 19:05:04 +00:00
Michael
a27274b3b4 Avoid loops at deletion / decoupling for relay posts 2022-07-28 05:29:47 +00:00
Michael
505191dec5 Decouple the processor from the receiver 2022-07-27 20:59:42 +00:00
Michael
86105635ca Improved message handling / new activity relay handling 2022-07-27 17:39:00 +00:00
Michael
b546173747 IMproved handling of untrusted posts 2022-07-24 21:58:09 +00:00
Michael
5ab94ea921 Option to store untrusted entries 2022-07-24 19:31:31 +00:00
Michael
51cc1f679f Added trust / isActivityGone 2022-07-24 14:26:06 +00:00
Michael
06280aa5a3 Recursively delete failed worker tasks 2022-07-24 09:26:52 +00:00
Michael
8c602071c2 Bookwyrm posts now work 2022-07-23 12:50:15 +00:00
Michael
7eb410bed7 Conversation/context is now stored 2022-07-23 06:52:43 +00:00
Michael
54cebf5a88 Remove test code 2022-07-21 12:42:26 +00:00
Michael
4c5e9f206e Remove ignored undo 2022-07-21 11:47:23 +00:00
Michael
1d13574225 Fetching of missing posts is reworked 2022-07-21 05:16:14 +00:00
Michael
7dcd02938d Remove entries from queue / relay detection 2022-07-20 05:37:40 +00:00
Michael
ce38e63399 Add and delete entries 2022-07-18 14:03:49 +00:00
Michael
2f462ffa16 Store incoming posts in a queue 2022-07-18 03:31:00 +00:00
Hypolite Petovan
da32fa8fa6 Create ActivityPub\FetchQueue and ActivityPub\FetchQueueItem classes
- These classes are used to flatten the recursive missing activity fetch that can hit PHP's maximum function nesting limit
- The original caller is responsible for processing the remaining queue once the original activity has been fetched
2022-06-25 12:40:54 -04:00
Roland Häder
88870d18be
Changes:
- added some type-hints
- added documentation
2022-06-25 16:48:36 +02:00
Roland Häder
fbae0b8bcf
Changes:
- renamed ItemArrayFromMail() to getItemArrayFromMail() to follow naming-convetion
- added missing type-hints
- added missing documentation
2022-06-20 21:22:46 +02:00
Roland Häder
752953e472
Changes:
- as @MrPetovan pointed out, $actor can be NULL earlier and used later as NULL
- added some missing type-hints
- added missing documentation
- the added @TODO points out to avoid true|false|null for a boolean
2022-06-20 21:00:19 +02:00
Roland Häder
4fb03cf163
Changes:
- fixed a null value handled over to Friendica\Model\APContact::getByURL()
- added missing type-hints
2022-06-20 19:05:02 +02:00