Commit graph

1309 commits

Author SHA1 Message Date
Matthias Pfefferle
b715d0f01b throw error if url is empty 2024-07-15 23:18: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
Matt Wiebe
a586d42eeb
Revert to @wordpress/scripts@27 (#806) 2024-07-12 08:15:28 +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
879d4aa040 start readme 2024-07-09 10:20:44 +02:00
Matthias Pfefferle
5d0f62fbb9 some formatting 2024-07-09 10:15:03 +02:00
Matthias Pfefferle
708efb1704
Update dependencies (#797)
* drop php 5.6 support

* update markdown
2024-07-08 20:03:07 +02:00
Matthias Pfefferle
72139fa298 fix readme 2024-07-08 11:13:16 +02:00
Matthias Pfefferle
884ad94142 fix #571 (again) 2024-07-03 12:52:21 +02:00
Matthias Pfefferle
c04a4367df it's about sharing not federation
...so do not check if `post_type_supports` activitypub
2024-07-03 00:55:55 +02:00
Matthias Pfefferle
94b2f01df4
Support Blog-User only mode! (#795)
* fix #794

* do not require the OpenGraph plugin
2024-07-02 11:28:57 +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
3726dedfdc version bump 2024-07-01 12:47:10 +02:00
Matthias Pfefferle
8983629995
Add the Fediverse creator of a post to opengraph (#786)
* add the fediverse creator of a post to opengraph

see:

* https://wordpress.org/plugins/opengraph/
* https://codeberg.org/fediverse/fep/src/branch/main/fep/XXXX/fep-XXXX.md
* https://github.com/mastodon/mastodon/pull/30398

* remove prefix until it is clearified

* Do not add the metadata if it already exists
2024-07-01 12:32:55 +02:00
Matthias Pfefferle
0bb448964b
added screen-reader-text (#792) 2024-07-01 12:30:16 +02:00
Stefano Volpe
5e765e0b62
doc: remove comma between subject and predicate (#670)
---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2024-06-23 20:17:50 -05: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
0e710d0789
Try to lookup local users first (#782) 2024-06-11 10:03:38 +02: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
d5132d311b version bump 2024-06-05 15:19:21 +02:00
dependabot[bot]
fd12d6d110
Bump @wordpress/scripts from 27.9.0 to 28.0.0 (#777) 2024-06-05 12:56:41 +00:00
dependabot[bot]
7ca033e830
Bump @wordpress/blocks from 12.35.0 to 13.0.0 (#769)
Bumps [@wordpress/blocks](https://github.com/WordPress/gutenberg/tree/HEAD/packages/blocks) from 12.35.0 to 13.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/blocks/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/blocks@13.0.0/packages/blocks)

---
updated-dependencies:
- dependency-name: "@wordpress/blocks"
  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-06-04 14:55:21 -05:00
dependabot[bot]
34b5c3c0cc
Bump @wordpress/element from 5.35.0 to 6.0.0 (#770)
Bumps [@wordpress/element](https://github.com/WordPress/gutenberg/tree/HEAD/packages/element) from 5.35.0 to 6.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/element/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/element@6.0.0/packages/element)

---
updated-dependencies:
- dependency-name: "@wordpress/element"
  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-06-04 14:52:26 -05:00
dependabot[bot]
0c28daa310
Bump @wordpress/dom-ready from 3.58.0 to 4.0.0 (#771)
Bumps [@wordpress/dom-ready](https://github.com/WordPress/gutenberg/tree/HEAD/packages/dom-ready) from 3.58.0 to 4.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/dom-ready/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/dom-ready@4.0.0/packages/dom-ready)

---
updated-dependencies:
- dependency-name: "@wordpress/dom-ready"
  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-06-04 14:50:51 -05:00
dependabot[bot]
32fbf118d2
Bump @wordpress/components from 27.6.0 to 28.0.0 (#772)
Bumps [@wordpress/components](https://github.com/WordPress/gutenberg/tree/HEAD/packages/components) from 27.6.0 to 28.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@28.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-06-04 14:50:06 -05:00
dependabot[bot]
db92ad3e3e
Bump @wordpress/data from 9.28.0 to 10.0.0 (#773)
Bumps [@wordpress/data](https://github.com/WordPress/gutenberg/tree/HEAD/packages/data) from 9.28.0 to 10.0.0.
- [Release notes](https://github.com/WordPress/gutenberg/releases)
- [Changelog](https://github.com/WordPress/gutenberg/blob/trunk/packages/data/CHANGELOG.md)
- [Commits](https://github.com/WordPress/gutenberg/commits/@wordpress/data@10.0.0/packages/data)

---
updated-dependencies:
- dependency-name: "@wordpress/data"
  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-06-04 14:48:07 -05: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
Alex Kirk
9fe9c3ec9e
Ensuring numeric ids is now done in EMA directly (#766) 2024-05-31 09:32:40 +02:00
Matt Wiebe
4f7a37aa7f appease the linter 2024-05-29 13:18:27 -05:00
Matt Wiebe
f3721c7321
Use Sync for notifications instead. (#765) 2024-05-22 10:25:58 -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
Matthias Pfefferle
d1c4d2572a fix EMA issue 2024-05-21 10:38:57 +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
Matthias Pfefferle
fa699c1110 fix lookup 2024-05-14 09:52:17 +02:00
Alex Kirk
aa521039a8
Add support for fetching external statuses without replies (#759) 2024-05-14 09:26:40 +02:00
Matthias Pfefferle
8104463928 Merge branch 'master' of https://github.com/Automattic/wordpress-activitypub 2024-05-13 13:06:37 +02:00
Matthias Pfefferle
b747ac661c test also on PHP 8.3 2024-05-13 13:06:36 +02:00