Commit graph

150 commits

Author SHA1 Message Date
Matthias Pfefferle
c95e501f98 redirect to canonical URL if it is not an ActivityPub request 2023-06-27 14:26:00 +02:00
Matthias Pfefferle
3feef1e8cf send user and blog activities
and set the blog to "single-mode"
2023-06-27 14:26:00 +02:00
Matthias Pfefferle
09518ea66b prepare pseudo users like a blog wide user.
this allows also other constructs like tag oder category users

fix #1
2023-06-27 14:25:12 +02:00
Matthias Pfefferle
235b5aa4a1 build a simple to_array converter 2023-06-26 11:08:04 +02:00
Matthias Pfefferle
5478be1355 a follower is now a valid ActivityPub Actor
this helps with API handling
2023-06-23 14:54:29 +02:00
Matthias Pfefferle
bfe5381d99
Merge pull request #299 from mediaformat/signature_verification
Signature verification
2023-06-01 11:21:33 +02:00
Matthias Pfefferle
758912da64 do not use cache for new followers 2023-05-31 14:03:46 +02:00
Matthias Pfefferle
2aa7077ae7 add wpautop to user description
fix #279
2023-05-23 12:26:02 +02:00
Matthias Pfefferle
cfb162c620
Merge branch 'master' into signature_verification 2023-05-17 09:59:02 +02:00
Matthias Pfefferle
c34fb74b41 coding style 2023-05-17 09:03:26 +02:00
Matthias Pfefferle
4b294bb8a6
Merge branch 'master' into signature_verification 2023-05-16 08:15:35 +02:00
Matt Wiebe
31e7e44642 remove filter 2023-05-12 18:25:49 -05:00
Matt Wiebe
ec00ace234 add a activitypub_rest_url filter 2023-05-12 16:55:04 -05:00
Matthias Pfefferle
c99daa3e72
Merge branch 'master' into add/rest-namespace-constant 2023-05-12 22:44:41 +02:00
Matt Wiebe
314ccf43a6 add a get_rest_url_by_path helper function, and use it 2023-05-12 15:24:24 -05:00
Jeremy Herve
d16014911b
Compat: introduce a conditional to detect ActivityPub requests
This conditional could be used within the plugin, but also by third-party plugins, to detect whether a request is an ActivityPub request, without having to manually check for query vars and headers every time.
2023-05-11 19:53:53 +02:00
Matthias Pfefferle
154b0018af PHPDoc 2023-05-10 15:36:45 +02:00
Django Doucet
27636b62d5 Add Service actor for signing get requests 2023-05-05 12:02:12 -06:00
Matthias Pfefferle
26e5a1d3f6
Merge branch 'master' into rewrite-followers 2023-05-04 09:33:55 +02:00
Matthias Pfefferle
e489a04880 remove unused constants 2023-05-04 09:32:52 +02:00
Matthias Pfefferle
dea5f38561 better error handling 2023-05-02 14:39:25 +02:00
Matthias Pfefferle
a673504d36
Merge branch 'master' into rewrite-followers 2023-04-28 17:38:30 +02:00
Matthias Pfefferle
7c47f9a07c clean up admin settings 2023-04-28 15:12:30 +02:00
Matthias Pfefferle
9966427fd3
Merge branch 'master' into feature/165/fediverse-biography 2023-04-28 14:36:17 +02:00
Matthias Pfefferle
230aaa5b24 prepare migration 2023-04-27 14:34:54 +02:00
Matthias Pfefferle
ec822535c9 Follower object should not make any remote calls 2023-04-27 09:57:50 +02:00
Matthias Pfefferle
d1f6973d9b re-add mention functionality
not perfect but works as expected
2023-04-25 11:59:08 +02:00
Matthias Pfefferle
84a82c2ac4 added follower model 2023-04-24 20:46:51 +02:00
Edward Ficklin
01532692f1 template helper function for displaying fedi bio, if set 2023-03-14 13:36:47 -04:00
Django Doucet
e4c991393d phpcbf 2023-03-10 16:27:35 -07:00
Django Doucet
86c8148cde cleanup 2023-03-10 15:45:45 -07:00
Django Doucet
1ac6882f3a rename function, inserts users into reply text 2023-03-10 10:14:46 -07:00
Django Doucet
627e5a9c0c Merge branch 'threaded-comments' into Comments 2023-02-04 15:35:01 -07:00
Matthias Pfefferle
e015da7f8f optimize publishing 2023-02-02 01:42:15 +01:00
Django
9cab6248e9
Merge pull request #4 from mexon/threaded-comments
Threaded comments
2023-01-29 22:07:32 -07:00
Django Doucet
f9c0edc681 Merge branch 'master' into Comments 2023-01-28 12:50:07 -07:00
Alex Kirk
3706e61842 Revert adding an argument 2023-01-27 15:48:29 +01:00
Alex Kirk
8391e713c9 Cache more metadata and webfinger results 2023-01-27 15:48:28 +01:00
Alex Kirk
7d598d92a8 Revert erroneous changes 2023-01-27 15:48:28 +01:00
Alex Kirk
99b316db34 Rework inboxes for cc 2023-01-27 15:48:28 +01:00
Alex Kirk
e065880085 Add ActivityPub mentions 2023-01-27 15:48:28 +01:00
Matthew Exon
85ca37aa1d fix code smells 2023-01-24 13:40:28 +08:00
Matthew Exon
8db9be5c2e remove debugging log line 2023-01-24 11:10:01 +08:00
Matthew Exon
6a906e5fe2 refactor support for threaded comments from ActivityPub 2023-01-24 11:09:27 +08:00
Matthias Pfefferle
45b6e63f32 fix phpcs issues 2022-12-23 13:17:12 +01:00
Matthias Pfefferle
f1dfd52329
Merge branch 'master' into Comments 2022-12-23 12:03:13 +01:00
Django Doucet
5dbf365c58 associate comments to back compat post 2022-12-19 14:16:54 -07:00
Django Doucet
f87dbd87be replace ap_comment_id to reuse replytocom var 2022-12-19 14:16:54 -07:00
Django Doucet
e5080f8693 code standards cleanup 2022-12-19 14:09:55 -07:00
Django Doucet
8e1c9ff6bb Replies Collection, settings, other fixes 2022-12-19 14:09:54 -07:00
Django Doucet
51643142aa coding standards 2022-12-19 14:09:54 -07:00
Django Doucet
73e6be9782 webfinger_extract remove extra param 2022-12-19 14:09:53 -07:00
Django Doucet
8938c67073 Comments update 2022-12-19 14:09:53 -07:00
6772d300b4 phpcs fixes 2022-12-19 14:09:53 -07:00
Alex Kirk
034ba0554d Don't access transient when receiving a WP_Error 2022-12-15 11:37:00 +01:00
Alex Kirk
7e6fbd60b3 Fix typo 2022-12-11 09:16:50 +01:00
Matthias Pfefferle
c6657d2fa8 move method to webfinger class 2022-12-05 20:48:07 +01:00
Matthias Pfefferle
d6b7cd0235
Merge branch 'master' into feature-guidance 2022-12-05 20:30:04 +01:00
Matthias Pfefferle
c1e128fbcd some text improvements
props @krafit
2022-12-05 17:45:56 +01:00
Alex Kirk
a82dea0685 Add unit test 2022-12-02 12:46:42 +01:00
Matthias Pfefferle
30919b1f7b be more descriptive 2022-11-15 20:50:56 +01:00
Matthias Pfefferle
fba834b15d add some guidance
based on the feedback of users and the suggestion of @akirk
2022-11-15 18:22:08 +01:00
Alex Kirk
eff60ed5dd Fix the signature for HTTP GET requests 2022-11-09 07:25:10 -07:00
Alex Kirk
5f6cf78da1 Add a parser to the Friends Plugin 2022-11-09 07:08:32 -07:00
44c652eba8 phpcs fixes 2022-01-27 13:09:11 +01:00
Django Doucet
17c386cb9d Comments 1 2021-09-06 00:25:02 -06:00
f4f46fc084 added health checks 2021-07-23 15:46:28 +02:00
3dd88fd176 prepare context for coming features 2021-01-12 12:45:17 +01:00
Django Doucet
0271b57844 add digest header 2020-12-09 22:23:05 -05:00
a875b90054 remove blocklist feature in favor of the comment blocklist 2020-09-21 13:20:39 +02:00
19a7bddc5f check case insensitive 2020-05-18 16:46:51 +02:00
5ad36d0027 add default value 2020-05-18 16:46:31 +02:00
122461ab6e escape even more 2020-05-12 20:30:06 +02:00
9945aa7cf8 escape global constants and functions
* Add leading \ before function invocation to speed up resolving.
* Add leading \ before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for null, false and true.
2020-05-12 19:42:09 +02:00
95682dbb6d change default 2020-04-28 10:03:44 +02:00
273787295a native function invocation 2020-02-22 13:02:58 +01:00
0d48496768 add blacklist settings 2020-02-21 11:09:31 +01:00
7bcd586eae fix get_remote_metadata_by_actor 2020-02-21 11:05:17 +01:00
Ben Lubar
fbcf2dbabc
support authorized fetch to avoid having comments from "Anonymous" 2020-01-18 12:56:30 -06:00
85db6f2d7e Automated native_function_invocation fixes
`php php-cs-fixer --rules=native_function_invocation fix ./ --allow-risky=yes`
2019-12-01 21:20:26 +01:00
65034d2a76 refactorings 2019-11-18 20:57:00 +01:00
55ca69fd22 add all required accept header 2019-09-29 18:23:22 +02:00
2f5bf1ccc4 explicit use of global functions 2019-09-27 10:12:59 +02:00
453acb7329 fixed PHP warnings 2019-08-21 15:06:48 +02:00
Armando Lüscher
344d981ce8
Initial proofread 2019-07-28 22:12:11 +02:00
55303bf34c check if inbox exists
...to prevent warnings
2019-07-26 17:07:43 +02:00
8d91b213e7 fixed inbox problems with pleroma 2019-03-14 23:10:11 +01:00
5db2e38719 fixed namespace problems 2019-02-24 12:21:25 +01:00
40b2651b7e big refactoring to use namespaces for a better code structure 2019-02-24 12:07:41 +01:00
e9d6f11889 public functions to get/count followers
for a better use in themes/other plugins
2019-01-22 21:16:37 +01:00
e8d2508f5d nicer profile and customizable backlink
* customizable backlink URL #18
* fixes #12
2019-01-16 21:50:45 +01:00
b9e90829af content fixes
* added option to switch between content and excerpt
* removed html and duplicateded new-lines

fixes #6
2019-01-04 19:57:33 +01:00
1580b3d4b1 fixed "excerpt" in AS JSON 2018-12-20 19:10:17 +01:00
4e653f5f75 0.1.0
* added basic WebFinger support
* added basic NodeInfo support
* fully functional "follow" activity
* send new posts to your followers
* receive comments from your followers
2018-12-20 11:33:08 +01:00
a8c1220139 added basic nodeinfo and webfinger support 2018-12-09 21:54:57 +01:00
2d84fcc600 implemented "follow" 2018-12-08 00:02:18 +01:00
dde469c27c prepare version 0.0.2 2018-09-30 22:51:22 +02:00
9f4cd97eb0 some helper functions
to get the `activitypub_object_type` and to `activitypub_post_to_json`
2018-09-27 22:26:57 +02:00
120d5714f8 basic outbox implementation 2018-09-24 20:47:15 +02:00
52f0d81228 initial 2018-08-18 12:35:39 +02:00