Commit graph

856 commits

Author SHA1 Message Date
Matthias Pfefferle
e8a3f67abb fix health check 2024-07-25 16:30:35 +02:00
Matthias Pfefferle
cd8623da28 fix health check 2024-07-25 16:27:50 +02:00
Matthias Pfefferle
ea6c250556 rename template to be consistent 2024-07-25 14:58:36 +02:00
Matthias Pfefferle
b240589e78
Add "reply context" support (#819)
* add basic reply context support

* UX improvements

* remove unused style file

* built

* Add bookmarklet!

* add build

* small UX tweaks

* add toolbox box

* improved text

* optimized block filter

* add in-reply-to to activity

* refactor to add inboxes using filters

and retrieve/add inboxes of `in-reply-to` links

* renamings

* plugins do not like slashed IDs

* rename to match new get param

---------

Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2024-07-24 23:44:01 +02:00
Matthias Pfefferle
12cb73bcd6 fix #818 2024-07-24 20:19:36 +02:00
Matthias Pfefferle
1aecfe82c6 set a default for image-url 2024-07-24 15:21:46 +02:00
Matthias Pfefferle
e3051b78eb set image url to null by default 2024-07-24 15:20:38 +02:00
Matthias Pfefferle
599a6841c8
Add link header (#817)
* init

* add support for API endpoint
2024-07-23 14:56:23 +02:00
Matthias Pfefferle
e7ab818612
Tag support for Actors (#812)
* auto generate tags for the blog user

* fix indents

* esc hashtag
2024-07-22 15:57:14 +02:00
Matthias Pfefferle
6cc071d270 add migration for 2.7.0 2024-07-22 11:16:38 +02:00
Matthias Pfefferle
e35f782a7f ignore phpcs error 2024-07-19 23:26:35 +02:00
Matthias Pfefferle
6328dbb924 send update when header image changes 2024-07-19 22:41:01 +02:00
Matthias Pfefferle
289684d15f
Add "Header Image" support (#816)
* Add "Header Image" support based on WordPress Site-Icon JS

* split settings pages

* Add support to change blog description

* use alternate settings for output

* add header image support for authors
2024-07-19 21:52:19 +02:00
Matthias Pfefferle
dc864c6443
Add setting to enable/disable the fediverse:creator OGP tag (#815) 2024-07-18 17:14:21 +02:00
Matthias Pfefferle
7fbfee1a74
fix extra fields (#814) 2024-07-18 08:23:34 +02:00
Matthias Pfefferle
c1a3882377 fix function name 2024-07-15 23:20:09 +02:00
Matthias Pfefferle
2ac2b67a44 Merge branch 'master' of https://github.com/Automattic/wordpress-activitypub 2024-07-15 23:18:42 +02:00
Matthias Pfefferle
b715d0f01b throw error if url is empty 2024-07-15 23:18:40 +02:00
Matthias Pfefferle
2e90d76c97
Some Remote-Follow improvements (#805)
* fix css class

* Remember remote profile (#807)

* Revert to @wordpress/scripts@27

* Remember users

* whitespace

* buncha class should be className

* render -> createRoot

* build

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>

* improved some CSS

* show "remember" checkbox only for the remote-reply overlay

* formatting

---------

Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2024-07-15 18:08:09 +02:00
Matthias Pfefferle
d2260639b3
Add extra fields (#762)
* add extra fields settings

* add settings

* add settings link

* allow users to only edit their extra fields

* use nopaging instead of posts_per_page

thanks @mattwiebe

* load filters only on admin page and remove the view actions

* author should not be editable

* some improvements and extra informations

* description

* use nopaging instead

* add blog url

* formatting

* formatting

* some cosmetics

* return attachments

* formatting

* formatting

* add default extra fields

* remove unused migration

* better defaults handling

* use a filter to be able to unhook/replace default extra fields

* should fix #810

---------

Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2024-07-15 18:03:40 +02:00
Matthias Pfefferle
4397ae95c8
Fix Fatal Error: wp_schedule_single_event third argument is being passed as a string (#809)
* fix #808

* fix test
2024-07-12 21:47:07 +02:00
Matthias Pfefferle
edad4d8c3d add http error codes 2024-07-11 14:18:15 +02:00
Matthias Pfefferle
c8634d936c fix comments endpoint 2024-07-10 10:45:07 +02:00
Jan Boddez
a9e0e0eb06
Update class-comment.php (#802) 2024-07-09 23:31:22 +02:00
Jan Boddez
0daadd109e
Update class-create.php (#801) 2024-07-09 16:32:43 +02:00
Matthias Pfefferle
5d0f62fbb9 some formatting 2024-07-09 10:15:03 +02:00
Matthias Pfefferle
884ad94142 fix #571 (again) 2024-07-03 12:52:21 +02:00
Matthias Pfefferle
5f595c6354
Support Drafts! (#780)
* init

* remove images, text and summary if post is converted to draft

* remove debug infos
2024-07-02 11:00:42 +02:00
Matthias Pfefferle
0bb448964b
added screen-reader-text (#792) 2024-07-01 12:30:16 +02:00
Matthias Pfefferle
0be726983e Merge branch 'master' of https://github.com/Automattic/wordpress-activitypub 2024-06-17 12:37:45 +02:00
Matthias Pfefferle
dab261826b fix redirect issue 2024-06-17 12:37:43 +02:00
Matt Wiebe
a08b33361a
Add count_total=false to WP_User_Query (#781) 2024-06-11 10:47:42 -05:00
Matthias Pfefferle
02678eeec3 fix some WebFinger issues 2024-06-09 14:48:31 +02:00
Matthias Pfefferle
3d1bf1b01b fix content type 2024-06-07 19:59:02 +02:00
Matthias Pfefferle
e21b8828c6 Add cors header 2024-06-07 19:04:53 +02:00
Matthias Pfefferle
72c2bfc572 send also announces for deletes 2024-06-07 14:55:17 +02:00
Matthias Pfefferle
06b6cd467c
Add follower count to "At a Glance" dashboard widget (#774)
* add follower count to "At a glance" dashboard widget

* add `number_format_i18n` function

* add decimal_point support

and load only on dashboard

* Update includes/class-admin.php

Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>

* Update includes/class-admin.php

Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>

* Update includes/class-admin.php

Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>

* added changes suggested by @jeherve

* add `get_plugin_version()` to all enqueues

---------

Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
2024-06-04 15:22:20 +02:00
Matthias Pfefferle
5ddeaac7e0
better conneg handling (#775) 2024-06-04 12:11:10 +02:00
Matthias Pfefferle
2d62cbf171 be sure to add a trailing slash 2024-06-03 11:02:51 +02:00
Matthias Pfefferle
8e7935f992
Add podcast support (#754)
* generic enclosure support

* prioritise media!

* prioritise media

* get_enclosures function

* remove unneeded check!

* some improvements

* formatting

---------

Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2024-06-01 11:12:42 +02:00
Matt Wiebe
4f7a37aa7f appease the linter 2024-05-29 13:18:27 -05:00
Matthias Pfefferle
b27d4d3c36
always fall back to get_by_username if one of the above fail (#764) 2024-05-21 15:01:30 +02:00
Matt Wiebe
89a57302c6
Notifications: introduce general class and use it for new follows (#761)
* Notifications: introduce general class and use it for new follows

Also send stuff via Jetpack

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-05-16 16:03:03 -05:00
Matthias Pfefferle
3fde5bbe96
Improve lemmy compatibility (#752)
* improve lemmy compatibility

* simplify code

* fix tests

* use string instead of array

* use `actors` instead of `users`

* optimize ID generation

* update ID

* the #threadiverse needs Announces for everything! :)

* change to full Announce Object

* fix indents
2024-05-16 17:30:08 +02:00
Jan Boddez
2b96c6efd2
Improve transformer (#731)
* Factory::get_transformer() may return a WP_Error instance

* Fix templates

* PHPDoc

* "Fix" conneg (for posts, at least)

* (Hopefully) fix conneg for comments, too

* Ugly, but works?

* Fix outboxes, collections

* Clean up a bit

* Use Factory

* Remove outdated `use`

* Use Transformer\Factory instead of Transformer\Post

* "Fix" _deprecated_function() call

* Remove superfluous transformer check

* Remove transformer check

* Call Transformer::get_transformer() only once per request

* PHPDoc

* this should be fine

a failing transformer is very unlikely because there are a lot of checks before `is_singular` or `is_comment` is valid.

* no longer used

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-05-16 15:14:31 +02:00
Matt Wiebe
8bf37f78ef
Prevent infinite loops in get_comment_ancestors (#758) 2024-05-10 10:18:22 -05:00
Matt Wiebe
9e57681701
Only send Mentions to comments in the direct hierarchy (#740)
* add generic get_comment_ancestors function

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-05-03 12:42:07 -05:00
Matthias Pfefferle
f0c52580ff
Improve AUTHORIZED_FETCH (#728)
* simplify code

* show limited profile informations

* exclude application user

* use actor instead of user

* change JS

* use Application instead of Application_User

* re-add use

* add summary

* Improves comment intent

* remove limited actor json in favour of the application user

---------

Co-authored-by: Django Doucet <mediaformat.ux@gmail.com>
2024-05-03 08:54:06 +02:00
Matthias Pfefferle
0d2ce1afb3
Fix funkwhale links (#753)
* fix funkwhale links

* already done by object_to_uri

* fix lemmy @-replies
2024-05-03 08:52:02 +02:00
Matthias Pfefferle
60d6be00c3
Improve attachment handling (#751) 2024-05-02 22:14:28 +02:00