Commit graph

1411 commits

Author SHA1 Message Date
Matt Wiebe
b469c23220
wpcom wants anonymous functions like this (#901) 2024-09-25 14:29:55 -05:00
Matthias Pfefferle
62e7a2b489 ooops 2024-09-25 19:59:06 +02:00
Matt Wiebe
de85cca894
Content warnings! (#900)
* Allow content warning

* build files

* added missing namespace

* fix tests

* actors does not support sensitive (yet).

* Update includes/functions.php

* added `sanitize_callback`

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-09-25 17:22:51 +02:00
Matthias Pfefferle
cc7a6cccc0 version bump 2024-09-25 15:40:56 +02:00
André Menrath
7370e97b5a
Add replies collection (#876)
* typo in phpdoc

* add first draft for adding replies collections to posts and comments

* refactoring

* Fix php CodeSniffer violations

* fix typo in php comment

* add draft for testing replies

* replies: test with own comment

* fix basic test for replies collection

* Restrict 'type' parameter for replies to 'post' or 'comment' in REST API

* some cleanups

* prefer ID over URL

* rename to `reply_id` to make clear that it is not the WordPress comment_id

* modularize retrieving of comment link via comment meta

* fix phpcs

* I think we should be more precise with this

and maybe there are other fallbacks coming

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-09-25 13:24:35 +02:00
Matthias Pfefferle
d361a6954d
fix missing @ in Follow-Me block (#898) 2024-09-23 22:44:24 +02:00
Matthias Pfefferle
a0c1d562f5
Add Screenshots of the Blocks (#899) 2024-09-23 22:18:07 +02:00
Matt Wiebe
99295715e3
Enable Mastodon Apps: support profile editing, blog user (#788)
---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-09-23 10:36:16 -05:00
Matthias Pfefferle
9c39c46e3a cleanup changelog 2024-09-23 11:59:26 +02:00
Matt Wiebe
18da65ff29
Follow Me/Followers: add inherit mode for dynamic templating (#892)
---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
2024-09-19 15:29:12 -05:00
Matt Wiebe
1136dd313e
Header Images: fix cropping for users without the 'customize' capability (#854)
* Header Images: fix cropping for users without the 'customize' capability

* only show users’ own posts to lower capaability users

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-09-19 12:02:38 +02:00
Alex Kirk
9d1decf582
Be more defensive when openssl (#895) 2024-09-18 14:46:00 +02:00
Matthias Pfefferle
63fc9ebef6 version bump 2024-09-17 14:45:35 +02:00
Matthias Pfefferle
aa9a67f1c1 fix const 2024-09-17 14:42:29 +02:00
Matthias Pfefferle
b913400895 fix issue that federated comments will not be threaded properly 2024-09-17 11:22:22 +02:00
Matthias Pfefferle
c8c4963466 version bump 2024-09-16 20:14:26 +02:00
Matthias Pfefferle
36610f5d75
Improve Validation (#847)
* initial

* re add authorisation request

* remove unnecessary checks

* validate object

* these checks are done by the inbox now

* only handle activitypub requests
2024-09-16 16:57:33 +02:00
Matthias Pfefferle
2729f2f0e1
It seems that Mastodon has issues with HTML in summaries (#893)
Fixes: https://github.com/mastodon/mastodon/issues/28455

Until this is merged: https://github.com/mastodon/mastodon/pull/28629
2024-09-15 09:58:27 +02:00
Matthias Pfefferle
8bff92d260
initial (#867) 2024-09-13 18:21:11 +02:00
Matthias Pfefferle
51dea3d23b fix #891 2024-09-12 19:44:12 +02:00
Matthias Pfefferle
ad99fdaae4 use is_blog_public 2024-09-12 16:55:14 +02:00
Matthias Pfefferle
7c44c947a8 Use Article as default 2024-09-11 10:36:13 +02:00
Matthias Pfefferle
5aaa2e3629 update readme 2024-09-10 16:23:38 +02:00
Matthias Pfefferle
dd70985765 use GitHub Markdown for a "Note" 2024-09-10 12:48:24 +02:00
Jason John Schwarz
33d2d04a20
Added documentation for setup behind reverse proxy with Apache (#888)
* Added documentation for setup behind reverse proxy with Apache

* reformatting and generating markdown version

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-09-10 10:08:54 +02:00
Matthias Pfefferle
95c4430d6e
Improve Accessibility for Reply-Context (#885)
fix #875
2024-09-10 08:46:17 +02:00
Matthias Pfefferle
7da5bc66ae fix nodeinfo endpoint 2024-09-09 13:34:33 +02:00
Matthias Pfefferle
c180644ccc
Fix Extra-Fields handling (#886) 2024-09-09 12:54:57 +02:00
Matthias Pfefferle
15cff15bc1
Fixed: Content handling for Podcasts (#883) 2024-09-09 10:05:18 +02:00
Matthias Pfefferle
e6c8689b86 version bump 2024-09-09 09:44:35 +02:00
dependabot[bot]
ae8e2b6918
Update yoast/phpunit-polyfills requirement from ^2.0 to ^3.0 (#881) 2024-09-09 07:17:34 +00:00
Matthias Pfefferle
2fe359c844 add fediverse symbol
https://symbol.fediverse.info/
2024-09-05 10:50:03 +02:00
André Menrath
d577dc0d0d
Fix: wrong followers URL in "to" attribute of posts (#874)
* draft that shows potentially right behavior for what is set on the to attribute on posts

* use Actor Object instead

* reformat

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-09-05 10:36:37 +02:00
Matthias Pfefferle
57299fc131
Add "Stream" Plugin support (#863)
* Add "Stream" Plugin support

This PR adds support for the Stream Plugin. It maps the Notifications to the Stream plugin, that might help us with debugging.

* send type specific notification action

...to be able to subscribe to only a certain type of notifications.
2024-09-04 15:25:23 +02:00
Matthias Pfefferle
88675ea6c6
Simple Remote-Reply endpoint. (#866)
* Simple Remote-Comment endpoint.

implements #864

* move sanitize to args

* fix PHPDoc

* change from actions to filters

thanks @akirk for your feedback!

* add generic Interaction hook
2024-09-04 13:37:38 +02:00
Matthias Pfefferle
b52c079299 remove proprietary WebFinger resource 2024-08-20 11:53:27 +02:00
Matthias Pfefferle
0b45628a65 ignore phpcs warning 2024-08-19 12:35:31 +02:00
Matthias Pfefferle
ef00eab0ea exclude likes and announces from comments 2024-08-19 00:57:56 +02:00
Matthias Pfefferle
a482c90069 show avatars on likes and announces
thanks @janboddez
2024-08-18 22:59:33 +02:00
Matthias Pfefferle
7a19bdea17 log inbox requests 2024-08-17 20:17:47 +02:00
Matthias Pfefferle
46db44768c fix undo for likes and announces 2024-08-16 14:12:15 +02:00
Jan Boddez
dabff80cc2
Add like handler (#804)
* Update class-comment.php

* Initial attempt

* Register like handler

* Add support for undoing likes

* add support for announce

and copied basic comment_type support handling from the Webmention plugin

* fix merge issues

* remove C&P issues

* add missing phpdoc

* Disable Announces and Likes by default.

* set ACTIVITYPUB_DISABLE_REACTIONS to false

* refactorings

* fix escaping

* add default object type

* deduplicate code

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-08-16 12:55:16 +02:00
Matthias Pfefferle
7806285d88
Support "read more" for Activity-Summary (#856)
* Support "read more" for Activity-Summary

* add support for excerpt

* use the same function also for the shortcode

* add mentions, hashtags and links support to `the_excerpt`

* do not make unnecessary extra db calls

* fall back to default if options is empty

* remove unused hook

* some fixes

and improvements based on the feedback of @MatzeKitt

* add phpdoc

* also extract hashtags from excerpt

* use filter, so that it is possible to also support mentions

and maybe tags in the future

* Add PHPDoc

* simplify code

* fix test
2024-08-16 12:53:14 +02:00
Matthias Pfefferle
caecaf3c47 always use print_r 2024-08-16 10:46:11 +02:00
Matthias Pfefferle
37a844ca73 update regex to match the changes 2024-08-15 10:18:03 +02:00
Daniel Hüsken
dd8f363c35
fix link detection for extra fields when spaces after the link and fix when two links in the content (#857) 2024-08-14 16:32:26 +02:00
Matthias Pfefferle
b160961a90 unification 2024-08-14 15:50:39 +02:00
Daniel Hüsken
2ac7676359
Replace hashtags, urls and mentions in summary with links (#849)
* replace hashtags, mentions and ulrs in summary

* move faq stuff and auto generate markdown version with grunt

* I would rename it the class to `Link` because it's about linking not about URLs

* fix auto generated readme

* let use not converted links in extra fields our link generation

* consistency

* find new function name, because it is not purely about links

* make `rel` directly filterable to be more flexible in the future

* remove some whitespaces

* it is not needed to check for a link inside a link

* not convert extra field links with additional text

* not convert extra field links with additional text

* simplified code

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-08-14 15:41:42 +02:00
Matt Wiebe
f068396e05
Autoloader: log failure in addition to wp_die() (#853) 2024-08-12 21:29:57 -05:00
Matthias Pfefferle
1b85b77347
Hide Bookmarklet if site does not support Blocks (#851) 2024-08-13 00:34:56 +02:00