Commit graph

1275 commits

Author SHA1 Message Date
Matthias Pfefferle
a3189a0f4c small improvements 2024-04-05 13:49:57 +02:00
Matthias Pfefferle
4132fdb501 fix excerpt length 2024-04-05 12:44:18 +02:00
Matthias Pfefferle
3bbcc2cd5c fix version numbers 2024-04-05 10:44:33 +02:00
Matt Wiebe
7ae3e7383d
Comment reply federation: support is_single_user sites (#712)
* Comment reply federation: support `is_single_user` sites

* Use the `activitypub` capability

* Use `publish_posts`

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

* No need to convert to Blog User, happens implicitly

* Other cap instance, update comment

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-04-04 23:16:05 +02:00
André Menrath
68e1a6bb9b
don't set a default actor type in the actor class (#713)
fixes that the get_type function is not called for extended classes.

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-03-27 17:57:14 +01:00
Matt Wiebe
9e676e6339
Federated replies: improved UX for "your reply will federate" (#715)
* Federated replies: improved UX for understanding that your reply will federate

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-03-26 15:41:23 -05:00
Matthias Pfefferle
85aa63e9f2 fix counter for system users 2024-03-26 15:26:26 +01:00
Matthias Pfefferle
7ca9c2bbfa fix #714 2024-03-26 15:22:21 +01:00
Matthias Pfefferle
8c245ceae1 oops 2024-03-22 12:04:22 +01:00
Matthias Pfefferle
a8948fad4f do not show if Webmention is installed 2024-03-22 11:58:50 +01:00
Matthias Pfefferle
a1c7bc06cc Add some comment infos 2024-03-22 11:53:57 +01:00
Matthias Pfefferle
496f080b72 run the hooker later 2024-03-20 20:41:45 +01:00
Matthias Pfefferle
16248fa731 return search data 2024-03-20 20:27:12 +01:00
Matthias Pfefferle
8938178970 search in followers 2024-03-20 20:19:33 +01:00
Matthias Pfefferle
3d43b3bb4d extend account with ActivityPub data 2024-03-19 19:14:18 +01:00
Matthias Pfefferle
15ae5f68ed add followers 2024-03-17 14:59:21 +01:00
Matthias Pfefferle
3688817cf4 mark links as "unhandled-link" and "status-link" 2024-03-14 16:09:12 +01:00
Matthew Exon
1f22ad85f6
Clarify how to set correct permalink structure (#664) (#710)
* Clarify how to set correct permalink structure (#664)

* Update includes/class-admin.php

---------

Co-authored-by: Matthew Exon <git.mexon@spamgourmet.com>
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-03-13 09:36:15 +01:00
Kaspars Dambis
343a3b5c67
Enqueue reply assets only if there is anything to reply to on the page (#706) 2024-03-12 12:57:07 -05:00
Matthias Pfefferle
e4ea69ca6f text 2024-03-12 08:31:31 +01:00
Matthias Pfefferle
79f400d88a
Improve User management (#703)
* Use an ActivityPub capability to better enable/disable ActivityPub support

* split PRs

* remove test hook

* do not run migrations for new installs

* fix unit tests

* fix unit tests

* remove abandoned schedule!

* fix migration class

* fix order

* restructuring

* remove follower migration

* do not yet remove legacy followers

* remove blog-user changes

* use a const for the version number

* add user tests and fix old ones

* use a more generic async migrator

* optimized test
2024-03-11 15:19:07 +01:00
Matthias Pfefferle
96626c6438 better validity checks 2024-03-07 16:19:34 +01:00
Matthias Pfefferle
fb0e23e885 better class handling 2024-03-05 09:39:43 +01:00
Matthias Pfefferle
02a86ced95 html_entity_decode text 2024-02-29 15:13:42 +01:00
Matthias Pfefferle
56748f6db8 fix check! 2024-02-29 15:08:27 +01:00
Matthias Pfefferle
cbbbd70890
A better default content handling based on the Object Type (#661)
* nicer default handling!

* use attachment based on the object type

* fix typo

* C&P issue

* update settings

* add default post format

* mixed up `post_format` with `object_type`

* use h2 instead of strong

* add theme support for `post-formats`

if using that feature for ActivityPub

* use Note instead of `image`, `video` and `gallery`

* add `alt` support for images

fix #94

* set type to `Note` if post-type has no title support

* better check

* hide "Post content" when WordPress-Post-Format is selected

* add ACTIVITYPUB_DEFAULT_OBJECT_TYPE const

* move some code

* use note as default
2024-02-29 14:47:10 +01:00
Matthias Pfefferle
149a31965f version bump 2024-02-27 10:13:32 +01:00
Matthias Pfefferle
9cf521c9b9
Prevent scheduler overload (#700) 2024-02-23 17:58:02 +01:00
dependabot[bot]
4d529e8050
Bump @wordpress/components from 26.0.2 to 27.0.0 (#699)
Bumps [@wordpress/components](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components) from 26.0.2 to 27.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/components@27.0.0/packages/components)

---
updated-dependencies:
- dependency-name: "@wordpress/components"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-22 09:33:04 -06:00
Matthias Pfefferle
5988736b14
Add/remote reply (#689) 2024-02-22 16:32:16 +01:00
dependabot[bot]
cf5e95eb07
Bump @wordpress/components from 25.16.0 to 26.0.0 (#691)
Bumps [@wordpress/components](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components) from 25.16.0 to 26.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/components/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/components@26.0.0/packages/components)

---
updated-dependencies:
- dependency-name: "@wordpress/components"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-02-21 11:22:35 -06:00
Matthias Pfefferle
6265f6626e
also support application/ld+json mime-type with AP profile (#696) 2024-02-15 00:16:46 +01:00
Matthias Pfefferle
fadd1986ae version bump 2024-02-13 18:30:56 +01:00
Matthias Pfefferle
7913faaa77
Add @ prefix to Follow-Block (#694) 2024-02-13 10:51:19 +01:00
Matthias Pfefferle
1d6c8eaab0
Apply comment_text filter to Activity (#695) 2024-02-13 10:51:01 +01:00
Matthias Pfefferle
61b770f40d fix reply-context 2024-02-12 11:57:57 +01:00
Matthias Pfefferle
2705703ced
Add all repliers as Mentions (#692)
* Add all repliers as Mentions

Add all repliers as Mentions so that they receive notifications.

See: https://wordpress.org/support/topic/ux-deviation-from-expected-behaviour-in-2-0/

* Fix readme

* typo
2024-02-12 11:30:01 +01:00
Matthias Pfefferle
dd911564ce fix version number 2024-02-12 11:16:17 +01:00
Matthias Pfefferle
3b21061c49
re-add vary header (#683)
* re-add vary header

fixes #580

* add Const to enable/disable `Vary` header

* lets start with default "off"
2024-02-12 11:09:16 +01:00
Matthias Pfefferle
20adc4cc97 fix #690 2024-02-11 12:44:46 +01:00
Matthias Pfefferle
223270f2a7 queue only deletes if follower exists 2024-02-10 20:41:47 +01:00
Matthias Pfefferle
2ed1534471 move generate_id to utils class 2024-02-09 16:31:09 +01:00
Matthias Pfefferle
ec24523df2 only disable comments for replies from the fediverse 2024-02-09 15:49:38 +01:00
Jan Boddez
742fbda212
Update class-scheduler.php (#688) 2024-02-09 14:08:18 +01:00
Matthias Pfefferle
98824d3a08 tweak federation state a bit 2024-02-07 17:54:48 +01:00
Matthias Pfefferle
a4f8c3084d fix comment federation
fix #671

@janboddez comments from a blog owner, that are direct replies to the post should now be federated properly. can you verify that?
2024-02-06 10:14:42 +01:00
Matthias Pfefferle
4a77436427 version bump 2024-02-01 11:20:15 +01:00
Matthias Pfefferle
1fc6869576
improve federated comments (#645)
* fix some times broken reply context

* revert changes

* add a filter to finally verify if an activity should be send or not

* better local comment handling

do not federate local only comments (fix #652) and hide "reply" link for federated comments

* show JSON only for comments that should be federated!

* fix parent_comment handling

* show external id if exists

* disable "edit comments" for federated comments

* some more doc

* added tests

* fix #658

* allow custom reply link!

* some restructurings

* this will be only a minor release

* version bump

* mark WordPress object as federated

* fix content filter issue!

fixes https://wordpress.org/support/topic/yasr-ratings-appear-on-comments-on-mastodon/

* add custom filter

thanks @janboddez for the idea https://github.com/Automattic/wordpress-activitypub/pull/645#issuecomment-1898820529

* optimize code a bit

* consts to enable/disable incoming/outgoing interactions

see https://wordpress.org/support/topic/how-to-suppress-user-comments-from-feed/

* rename state

* cleanup federation check

* fix markdown

* better handling of Create/Update/Delete

* update check
2024-02-01 11:17:03 +01:00
Matthias Pfefferle
484cc56677
fix ActivityPub @context (#682)
The `call_user_func` version seem to not work properly in this case.

/cc @Menrath
2024-01-31 16:31:22 +01:00
Matthias Pfefferle
c3c987a765
improve the settings screen (#681) 2024-01-30 21:29:09 +01:00