Diogo Peralta Cordeiro
8edd975b11
[ActivityPub] Set Notice scope when storing activities
2021-12-07 15:23:20 +00:00
Diogo Peralta Cordeiro
56ece91f4c
[ActivityPub][POSTMAN] Do not die on network errors
2021-07-16 19:44:42 +01:00
Diogo Peralta Cordeiro
68dfaff413
[ActivityPub][INBOX] CREATE NOTE Attachments, we handle enclosures elsewhere
...
It was trying to make enclosures with objects instead of strings, also attachments don't use this, only links
2021-07-16 19:44:42 +01:00
Diogo Peralta Cordeiro
4cc3a779b5
[ActivityPub][INBOX] CREATE NOTE now accepts <br> tag
2021-07-16 19:44:42 +01:00
Diogo Peralta Cordeiro
5077b65d71
[Media] Fix several issues
...
[StoreRemoteMedia] Upgrade plugin to use the new Media system
API Changes:
- Added getters to File to better formalize the ideas of the commit "[Media] Fix issues with database file storage"
UI Changes:
- Now presented thumbnails are actual thumbnails (bug fix)
- Attachment actions have a slightly more extended behaviour
Many other minor bug fixes...
2021-07-16 19:44:42 +01:00
Diogo Peralta Cordeiro
c2d2f90312
[ActivityPub] Attachment fetch should happen on StoreRemoteMedia
2021-07-16 19:44:42 +01:00
Diogo Peralta Cordeiro
8d84451200
[ActivityPub] Re-implement Delete Actor
2021-07-16 19:44:42 +01:00
Alexei Sorokin
2f7d6ef07b
[ActivityPub][INBOX][Delete] Stop if the ID is not present
2021-07-16 19:44:41 +01:00
Alexei Sorokin
6cb3a0c390
[ActivityPub] Check if a Notice is public via CC as well
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
238652b15d
[ActivityPub] Fix note URIs
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
c3cdde0873
[ActivityPub] Tombstones now have datetimes
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
82f1fc7ca2
[ActivityPub] Implement Failed Queue
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
751b23f6fe
[ActivityPub] Fix DELETE
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
af0366ed58
[ActivityPub] Fix issues concerning Activity URIs
...
And some other minor bugs.
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
300c4e3d04
[ActivityPub] Revert moving Disfavor to Queues
...
It seems this kind of notice isn't queued?
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
5f35d9633d
[ActivityPub][Queues] Fix Like
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
c834d27dd6
[TheFreeNetwork] Do not allow lower priority protocols to handle remote actors already handled by the higher ones
2021-07-16 19:44:41 +01:00
Diogo Cordeiro
33721c85cd
[ActivityPub][NOTICE] Process attachments
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
7e559f0cd0
[ActivityPub][NOTICE] Fix variable being wrongly reused
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
f3df3762f1
[ActivityPub][INBOX][Delete] Support Delete Actor object being a Tombstone
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
ce4ceaf8c7
[ActivityPub][NOTICE] Fix other federation protocols mention handling
2021-07-16 19:44:38 +01:00
t3nma
119783f80e
[ActivityPub][QUEUES] Handle Create (AS1 POST) verb properly
...
Fixes a bug introduced in e504d13120
2021-07-16 19:44:38 +01:00
Diogo Cordeiro
452f05512f
[ActivityPub][Explorer] More robust exception handler for invalid remote answers
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
235122280d
[ActivityPub] Increase type strictness on Explorer
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
b5180d6096
[ActivityPub] Fix bug introduced with 4d171b27
...
Too few arguments to function Activitypub_notice::create_notice()
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
4bbfb2dd56
[ActivityPub][QUEUES] Add Like, Undo and Delete
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
2b4aaca14a
[ActivityPub][INBOX][Delete] Fix misconceptions
...
References:
- https://socialhub.activitypub.rocks/t/the-delete-activity-and-its-misconceptions/137
- https://socialhub.activitypub.rocks/t/the-update-activity-more-than-caching/260
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
64108aa51d
[ActivityPub][NOTE] Do not extract actor from attributedTo
...
There was no checking of attributedTo, actors and referent object IDs to make
sure they exist in the same domain. Therefore, one could spoof messages from
people by doing attributedTo: whoever-i-want-to-spoof
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
9f4c4edb02
[ActivityPub][Ostatus] Fetch avatars in accordance to the new media system
2021-07-16 19:44:37 +01:00
Diogo Cordeiro
32a7cd6458
[ActivityPub][HTTPSignatures] Fix verify
2021-07-16 19:44:37 +01:00
tenma
9fcccd8b5a
[ActivityPub] Add TheFreeNetwork module's support in handling profile insertion
...
Activitypub_profile:
- Update do_insert to trigger TFN's assistance in inserting the profile
explorer:
- Use the new LRDD's method for grabbing profile aliases
2021-07-16 19:44:36 +01:00
tenma
a17c010bb9
[ActivityPub] Autofix profile URIs through alias discovering
...
Activitypub_profile:
- Add updateUri method
explorer:
- Add grab_aliases method
- Update grab_local_user's online course to grab and test aliases
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
6598b89db0
[ActivityPub] Fix profile url handling
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
4a90f281ed
[ActivityPub] Fix undefined tag index 'type' in Activitypub_notice
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
351e356bb4
[ActivityPub][Postman] Fix not sending notices to self
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
e7778bd5d7
[ActivityPub][RSA] Revision, increase type scrictness and improve docs
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
73af7be061
[ActivityPub] Properly handle Actor URIs by using events correctly
...
This should fix nulls on explorer lookups inputed by postman after generate_followers/getSubscribers, that I think were caused by calling common_profile_uri that, curiously, only handles local profiles
2021-07-16 19:44:36 +01:00
Diogo Cordeiro
fd68965255
[ActivityPub] New URI system
2021-07-16 19:44:35 +01:00
tenma
6a37c21ead
[ActivityPub] Fix some small known problems
...
ActivityPubPlugin:
- Rework onProfileDeleteRelated to account for the tables _rsa and _pending_follow_requests
- Update onEndShowAccountProfileBlock to stop creating the ap_profile if it doesn't exist (we'll handle this in a different manner)
Activitypub_profile:
- Remove unnecessary code from from_profile method and add return type information
Explorer:
- Update travel_collection to call itself instead of _lookup, that was wrong
2021-07-16 19:44:35 +01:00
tenma
234ba7705f
[ActivityPub] Fix successive "Cannot use object of type stdClass as array" errors in the postman
2021-07-16 19:44:35 +01:00
tenma
4901126519
[ActivityPub] Revert usage of bitwise-operator & in the inbox_handler class.
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
9088e58a64
[ActivityPub] The protocol allows content to be null, GNU social doesn't, we'll reject silentiously
...
Reported by kaniini
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
4133874e59
[ActivityPub] attributedTo itself is not required, if not present then it should be inferred from the actor
...
Reported by kaniini
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
b7ce5b91a4
[ActivityPub] Fix security issue concerning remote profile deletes
...
Reported by kaniini
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
48eee0e018
[ActivityPub] Inbox Handler: Remove old guzzle import
...
Improve exception information in doc blocks
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
174733edc8
[ActivityPub] Slightly increase robustness on exception handling
...
Also ported Activitypub_rsa to PHP7
Minor indentation fixes
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
c93049d0da
[ActivityPub] Consistent headers in explorer requests
...
Minor indentation fixes
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
344db5dcdf
[ActivityPub] Add missing parenthesis in class instantiation
...
Fixed some issues related to thrown exceptions in the doblocks; also boolean -> bool
2021-07-16 19:44:35 +01:00
Diogo Cordeiro
d0e3f9c823
[ActivityPub] Fix some bugs with onStartNoticeSearch
...
Refactored Activitypub_profile::ensure_web_finger to Activitypub_profile::ensure_webfinger
Do not throw exceptions in the handling of this event because we don't
want to stop the regular search just because we were unable to find
ActivityPub actors or notes.
2021-07-16 19:44:35 +01:00
tenma
fe2168c5ae
[ActivityPub] Add support fox search-box profile/notice grabbing
...
NoticeSearchAction:
- Add new event before finding query matches
ActivityPubPlugin:
- Subscribe new searchNotice event
- Bump minor version number
Activitypub_explorer:
- Update lookup to make remote-grabbing optional
2021-07-16 19:44:34 +01:00