Commit graph

876 commits

Author SHA1 Message Date
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
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
Matthias Pfefferle
1b85b77347
Hide Bookmarklet if site does not support Blocks (#851) 2024-08-13 00:34:56 +02:00
Matt Wiebe
08106890a3
Add Blog extra fields (#838)
Imitate User Extra Fields, and consolidate into an `ExtraFields` class

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-08-09 09:40:35 -05:00
Matthias Pfefferle
0bbd715d05
Refactor Media Handling a bit and add support for Seriously Simple Podcasting (#839)
* add some filters

* re-order functions for a better readability

* first draft to support Seriously Simple Podcasting

* use icon instead of thumbnail

* fix array_filter

* use transformer instead

* fix phpcs issues

* add some PHPDoc

* some more docs
2024-08-08 15:19:55 +02:00
Matthias Pfefferle
80ec65ad0a simplified WebFinger code 2024-08-02 10:31:42 +02:00
Daniel Hüsken
d6095d0943
Add menu_order to ap_extrafield so that user can decide in with order they will be displayed (#827)
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-08-01 11:44:22 +02:00
Matt Wiebe
353d848ef7
Only send Update for previously-published posts (#833) 2024-08-01 09:43:11 +02:00
Matt Wiebe
e6040f5fe8
Fix undefined get_sample_permalink (#832) 2024-08-01 09:41:15 +02:00
Daniel Hüsken
fae1723119
Changed missing activitypub_user_description to activitypub_description (#830) 2024-07-30 11:06:36 +02:00
Daniel Hüsken
d445aa3414
Add line brakes to user biography (#829) 2024-07-30 10:34:45 +02:00
Matthias Pfefferle
ed76399d0d add 10 tags 2024-07-26 16:03:58 +02:00
Matthias Pfefferle
a7f04db147 use 3.0.0
because we include some breaking changes
2024-07-26 13:51:03 +02:00
Matthias Pfefferle
7baa93ce3a update readme.md 2024-07-26 11:13:56 +02:00
Matthias Pfefferle
7f2e3754c9 phpcs improvements 2024-07-26 10:26:47 +02:00
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