Commit graph

184 commits

Author SHA1 Message Date
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
Matthias Pfefferle
37a844ca73 update regex to match the changes 2024-08-15 10:18:03 +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
4326a76878 update version number 2024-08-07 18:03:56 +02:00
Matthias Pfefferle
f95d0e44b7 prepare version 3.1.0 2024-08-07 17:37:01 +02:00
Matthias Pfefferle
093a92bde5 fix typo 2024-07-29 13:01:43 +02:00
Matthias Pfefferle
5dfde8d971 updated readme 2024-07-26 13:53:19 +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
c6062d88da prepare version 2.7.0 2024-07-25 11:00:24 +02:00
Matthias Pfefferle
e490a0138d version bump 2024-07-18 08:23:50 +02:00
Matthias Pfefferle
dee41c3e43 version bump 2024-07-17 16:29:28 +02:00
Matthias Pfefferle
d387f566cb added changelog 2024-07-17 15:53:44 +02:00
Matthias Pfefferle
b56318842d updated "Tested up to" 2024-07-17 09:54:17 +02:00
Matthias Pfefferle
6333d3c1d5 cleanup changelog 2024-07-16 11:01:41 +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
3726dedfdc version bump 2024-07-01 12:47:10 +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
d5132d311b version bump 2024-06-05 15:19:21 +02:00
Matthias Pfefferle
c9e980a6b8 version bump 2024-04-29 10:00:25 +02:00
Matthias Pfefferle
4cd98b2b76
Change/docs (#708)
* start CHANGELOG.md

fix #439 and #702

* use valid URL

* updated

* updates

* updates

* update readme.md

* add latest version

* highlight code

* fix excerpt length

* update readme

* added missing shared Dialog abstraction
2024-04-11 09:59:10 +02:00
Matthias Pfefferle
149a31965f version bump 2024-02-27 10:13:32 +01:00
Matthias Pfefferle
fadd1986ae version bump 2024-02-13 18:30:56 +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
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
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
e8f1f21a3e consistent wording 2024-01-29 09:04:26 +01:00
Matthias Pfefferle
25275f2c00 FAQ: Follower Lists
fix #660
2024-01-29 09:01:19 +01:00
Matthias Pfefferle
7e35c1e8b9 version bump 2024-01-12 16:07:56 +01:00
Matthias Pfefferle
3f8d6af7fc version bump 2024-01-09 09:44:40 +01:00
Matthias Pfefferle
2c107eec62
Use FEP-2c59 for WebFinger reference (#636) 2024-01-08 20:01:16 +01:00
Tom
245cda8433
Add readme section for "WordPress in sub directory" with different si… (#625)
* Add readme section for "WordPress in sub directory" with different site_url, fixes #538

* Add readme section for "WordPress in sub directory" also in readme.txt

* Fix typo

* the readme is auto-generated

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-12-28 21:04:12 +01:00
Matthias Pfefferle
e915b7af8b fix #620 2023-12-23 20:31:42 +01:00
Matt Wiebe
3cda64a255
Profiles: Update followers when profile fields change (#542)
* Profiles: update followers when profile fields change

* use static

* only try to merge mention inboxes when valid

* cleanups

* add hook to wp_update_user

* update readme

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-12-22 11:33:25 +01:00
Matthias Pfefferle
b744dc551d
Comment Federation (#550)
* Comments 1

* Delete FUNDING.yml

* Add basic BuddyPress support

fix #122

thanks and props @skysarwer

* change URL to `bp_core_get_user_domain`

* fix "Follow" issue

fix #133

* fix #135

* version bump

* Create phpunit.yml

* Update composer.json

* Update composer.json

* Update phpunit.yml

* Update composer.json

* Create phpcs.yml

* Update phpcs.xml

* Update composer.json

* phpcs fixes

* fix typo

* Comments update

* webfinger_extract remove extra param

* coding standards

* Replies Collection, settings, other fixes

* Create stale.yml

* move stale file

* code standards cleanup

* Migrate / Update script

* bugfix

* add settings link to plugin page

* fix code standards

* fix cs

* fix PHPCS

* PHPCS fixes

* change background image for wp.org

* fix docker

* fix webfinger for email identifiers

fix #152

* version bump

* update composer file to fix unit testing

* allow plugins

* fix dependencies

* Migrate tools

* code cleanup

* regression fix

* Fix announce, clarified language

* update included filename

* code cleanup

* Improve migration UX

* Add comments view, warnings to migrate page

* style fix

* more style fixes

* Fix send_delete_activity

* replace ap_comment_id to reuse  replytocom var

* Comments class missing attributes

* Post class fix attributes

* move js file to assets/js

* Separate file for Comment processing hooks

* fix file path

* associate comments to back compat post

* Fix js assets enqueue

* change regex matching potential hashtags

Matches any string starting with '#' and consisting of any number and combination of [A-Za-z0-9_] that is directly followed by whitespace or punctuation. Groups everything after '#' for access in functions using this regex.

This fixes #183 (incomplete links on hashtags containing special characters) by not matching these at all.

* also detect hashtags at the start of a paragraph

* restrict html tags after which to detect a hashtag

Hashtags should not be detected after just any html tag - for example not after an opening a or div. To still allow detection at the start of a line, allow specifically p and br to directly precede a hashtag.

* fix pagination

* Add Custom Post Type support to outbox API

* remove comment_type

* fix comparison

* remove trailing spaces

* fix phpcs issues

* fix phpcs issues

* run phpcs also on pull_requests

* fix phpcs issues

* support threaded comments from ActivityPub

* refactor support for threaded comments from ActivityPub

* remove debugging log line

* add first unit tests for class inbox

* fix code smells

* make filter function static

* attempt to resolve backwards compatibility issues

* update js to new file

* delete old js

* Remove migrate code

* update post meta canonical

* remove type and mention meta from comment filters

* extract mentions from comment_content

* phpcbf

* remove extra curly bracket

* Remove migrate code

* remove version_check()

* Update enqueue scripts

* Remove remote comments from preprocessing

* Reply to comments from Dashboard

* rename function, inserts users into reply text

* Update dispatch comments

* update comment model

* fix comment model replies property

* fix preprocess_comment cap check

* Add webfinger filter to comments

* Add comment edit datetime

* cleanup

* fix var name

* cleanup

* phpcbf

* better actual translation support

* Separate comment reply script

* migrate dispatch, migrate comment model to transform

* ignore WP_Comment type for now

* Adds new helpers for resolving inReplyTo url

* Update activitypub_send_comment_activity to include type

* remove redundant id check

* reinclude user_id in saved ap_object meta

* update post field meta

* Fix comment updated datetime

* front-end reply inserts @mentions

* enqueue reply script on front end

* use const instead of dirname

* some simplifications

* move some functions

* fixes

* some more fixes

* fix namespace

* fix unittests

* fix testcase

* fixed typo

* fix tests

* fix tests

* fix PHPCS

* move functions to transformer class

* fix warnings

* Link remote comments on frontend

* Link to comment source as row action

* Init Comments class

* remove dead dispatch action

* re-add extract mentions filter

* Restore and tweak Comment transform

* Schedule comments activities for non-admin users

* lint

* remove context property

* rename get_id method to generate_id

* fix locale

* move functions

* PHPDoc

* this is never used

* remove some edit methods

* remove replies for now

* remove JS calls

* remove reply_recipients

* never used

* remove other query-vars

* otherwise to_json would not work properly

* small changes

* use `c` for comment IDs

* remove comments.php for now

maybe re-add it later

* wp_insert_post is an action

* also parse comment_text

* remove duplicate functions

* add Base transformer

* remove invalid test

* update to new query var

* update dispatcher to support comments and posts

* fix transition

* remove unused functions for now

* schedule_comment_activity seems to ignore create and update

* fix wrong use of functions!

* not every platforms sends an URL

* check source-id first

* remove hashtags for now

* fallback to ID

* fix typo

* move to_activity to Base class

* remove unused function

* add support for announce and like

* also ping inboxes of other commenters in the thread

* restructure WebFinger class

* some small improvements

* simplified to_object class

props @Menrath for the feedback and the idea!

* fix unit tests

* make transformer filterable

/cc @Menrath

* use transformer factory, so that transformer can be overwritten

* phpcs fixes

* fix attachments

* fix comment transformer

* remove comments for now

* update readme/changelog

* simplify and unify json_encodes

---------

Co-authored-by: Django Doucet <mediaformat.ux@gmail.com>
Co-authored-by: Andreas <andreas@bocops.de>
Co-authored-by: Eana Hufwe <eana@1a23.com>
Co-authored-by: Matthew Exon <git.mexon@spamgourmet.com>
Co-authored-by: Django Doucet <django.doucet@webdevstudios.com>
2023-12-22 10:12:26 +01:00
Matthias Pfefferle
6f1a9a1f7f
added FEP-2677 (#613)
* added FEP-2677

This PR enables [FEP-2677: Identifying the Application Actor](https://codeberg.org/fediverse/fep/src/branch/main/fep/2677/fep-2677.md)

@Menrath I needed a small task for in between ;)

* update changelog
2023-12-21 10:06:37 +01:00
Matthias Pfefferle
39c9288987
Improve/webfinger (#616)
* Fix some WebFinger issues

* update changelog
2023-12-21 10:04:15 +01:00
Matthias Pfefferle
ae26609e5e update FAQ 2023-12-13 11:33:34 +01:00
Matthias Pfefferle
a2e5fc2021
Add CSS class for AP comments to allow custom designs (#602)
* Add CSS class for AP comments to allow custom designs

fix #600

* updated changelog
2023-12-12 14:01:43 +01:00
Matthias Pfefferle
9f8bad3e8d
Make Post-Template filterable (#597)
* make template filterable

prepare #596

also #519

* updated changelog
2023-12-12 13:58:44 +01:00
Matthias Pfefferle
77c508059b
Remove deprecated classes (#604) 2023-12-12 13:47:01 +01:00
Matthias Pfefferle
cf541b41b4 update readme 2023-12-05 12:52:56 +01:00
Matthias Pfefferle
eecdb63da3 updated changelog 2023-12-04 19:09:00 +01:00
Matthias Pfefferle
c3d5b4bb1a updated readme 2023-11-30 16:41:05 +01:00
Matthias Pfefferle
9bd8659e97 updated changelog 2023-11-30 13:04:21 +01:00
Matthias Pfefferle
d226564325 prepare v1.2.0 2023-11-18 12:01:29 +01:00
Matthias Pfefferle
1437b5acd8 prepare compatibility with WP 6.4 2023-11-07 11:19:42 +01:00