Commit graph

147 commits

Author SHA1 Message Date
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
Matthias Pfefferle
d8a2d75768 update changelog 2023-11-07 11:02:41 +01:00
Matthias Pfefferle
57b39a5c08 prepare 1.1.0 2023-11-07 10:01:03 +01:00
Matt Wiebe
70cefc9712 prep readme for 1.1.0 release 2023-10-27 16:18:42 -05:00
Matthias Pfefferle
d7810114b7
improve error messages and codes (#532)
* improve error messages and codes

* version bump
2023-10-24 13:00:22 +02:00
Matthias Pfefferle
e91334e4d7
fix following endpoint (#531)
* fix following endpoint

* version bump
2023-10-24 12:45:46 +02:00
Matthias Pfefferle
2664ae807c update readme 2023-10-23 16:18:28 +02:00
Matthias Pfefferle
b946ef3de1
more consistent use of response content type (#529)
* more consistent use of response content type

* update readme

* fix typo
2023-10-23 14:57:58 +02:00
Matthias Pfefferle
9ac5d84f5c updated readme 2023-10-23 14:56:37 +02:00
Matthias Pfefferle
acc632f05c prepare v1.0.8 2023-10-23 09:03:15 +02:00
Chaitanya110703
247899312a
doc(README): remove typo (#528) 2023-10-23 07:26:17 +02:00
Matthias Pfefferle
b1773b5a0c version bump 2023-10-13 11:02:56 +02:00
Matthias Pfefferle
2ef72a0364 API changes 2023-10-12 11:00:58 +02:00
Matthias Pfefferle
fd6cb84ba3 Fix compatibility with WebFinger and NodeInfo plugin 2023-10-11 11:09:37 +02:00
Matthias Pfefferle
cd6061a472 version bump 2023-10-10 20:41:57 +02:00
Matthias Pfefferle
12a9421c8c version bump 2023-10-10 17:04:57 +02:00
Brandon Kraft
7b0fc062d7
README: add missing words (#486)
* README: add missing words

* updated ActivityPub

thanks @kraftbj

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-10-04 15:36:55 +02:00
Matthias Pfefferle
d268bd9aee version bump 2023-10-02 17:32:27 +02:00
Matthias Pfefferle
b4b934237d version bump / changelog update 2023-09-22 09:40:45 +02:00
Matthias Pfefferle
4a94eae877
add path to route (#438)
* add path to route

fix #421

* added changelog entry
2023-09-21 09:04:51 +02:00
Jeremy Herve
fe07d5eb32
Blocks: short-circuit early on sites that do not support blocks (#431)
* Blocks: short-circuit early on sites that do not support blocks

Fixes #430

This is typically only the case for sites using a custom version of WordPress, like ClassicPress.

* let grunt build the markdown

* Check for block support earlier and add filter

One can now deactivate the blocks registered by ActivityPub like so:

```
add_filter( 'activitypub_site_supports_blocks', '__return_false' );
```

* Fix readme (gotta remember to use grunt)

* alias function

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-09-15 10:38:47 +02:00
Terence Eden
f7ebced624
Fix .htaccess issue with subdomain (#433)
* Fix .htaccess instructions

* Update readme.txt
2023-09-15 08:47:30 +02:00
Jeremy Herve
2568f6651d
Post images: fix a typo in the hook name (#429)
* Post images: fix a typo in the hook name

Follow-up to #309

It should be '_post', not twice '_pre'.

* let grunt create the readme.md

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-09-14 19:50:27 +02:00
Matthias Pfefferle
42d525c904 update readme 2023-09-11 15:19:27 +02:00
Matthias Pfefferle
5fbf931d41 sanitize user_login 2023-09-11 11:33:31 +02:00
Matthias Pfefferle
472196397e Calckey is now firefish
and Akkoma (a pleroma fork) seems to also work fine!
2023-09-04 09:33:33 +02:00
Matt Wiebe
7aea1e8263
Add "Follow Me" block (#395)
The Follow Me block helps site visitors to follow you in the fediverse
---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-08-30 14:14:57 -05:00
Matthias Pfefferle
9a5cf66774 fix readme 2023-08-30 16:12:06 +02:00
Matt Wiebe
dd693c7e67
Words: copy and language consistency/improvements everywhere (#404)
* copy and language improvements everywhere

* remove "try"

thanks @cavalierlife

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-08-28 14:12:10 +02:00
Matthias Pfefferle
6f63e6c651 update readme 2023-08-11 20:33:50 +02:00
Matthias Pfefferle
2ba6f6b8a7 Add upgrade notice 2023-08-02 10:44:56 +02:00
Matthias Pfefferle
9d30c413f0 fix readme 2023-07-28 20:40:37 +02:00
Jeremy Herve
ca5a3e24b1
General: load plugin faster (#376)
Fixes #375

Related discussion: p1690454109597069-slack-C04TJ8P900J

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2023-07-27 15:00:08 +02:00
Matthias Pfefferle
5fd61b98f6 Add followers block to the readmes changelog 2023-07-27 10:44:13 +02:00
Matthias Pfefferle
7ac2533940 auto generate README.md
@jeherve there is a grunt task to auto generate the readme.md from the readme.txt

simply run `npm install` and then `grunt` in your terminal.
2023-07-26 19:57:53 +02:00
Jeremy Herve
ef369e8ca8
General: update tested WP version for upcoming WordPress 6.3. 2023-07-26 19:38:50 +02:00
Matthias Pfefferle
3289c7bb48 Version bump 2023-07-20 13:21:29 +02:00
Matthias Pfefferle
964ceee869 fix tests 2023-07-17 17:23:13 +02:00