Commit graph

81 commits

Author SHA1 Message Date
Konstantin Obenland
ef666772ec
PHPCS: Include all files by default (#930)
* PHPCS: Include all files by default

* simplify menu highlighting

* Update includes/transformer/class-factory.php

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

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-10-09 08:57:13 +02:00
Konstantin Obenland
00a57c39a4
PHPCS: Enable Commenting sniff (#925)
* PHPCS: Enable Commenting sniff

* Apply suggestions from code review

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

* Fix param alignment.

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-10-07 13:25:51 +02:00
Konstantin Obenland
a2e7729d4d
PHPCS: Enable NoReservedKeywordParameterNames sniff (#909)
* PHPCS: Enable NoReservedKeywordParameterNames sniff

* Fix parameter doc

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

* Rename to $data since the type is ambiguous

Props @pfefferle.

* Name it $uri for consistency

Props @pfefferle.

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-10-03 10:19:06 -05:00
Konstantin Obenland
2b5f635ba3
Suggestion: Adopt WordPress PHP Coding Standards (#905)
* Update phpcs rules

* Automated style updates

* Silence all other Warnings and Errors

We'll fix them in follow ups.
2024-09-28 12:53:21 -05:00
Matt Wiebe
b469c23220
wpcom wants anonymous functions like this (#901) 2024-09-25 14:29:55 -05:00
Matt Wiebe
99295715e3
Enable Mastodon Apps: support profile editing, blog user (#788)
---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-09-23 10:36:16 -05:00
Matthias Pfefferle
aa9a67f1c1 fix const 2024-09-17 14:42:29 +02:00
Matthias Pfefferle
51dea3d23b fix #891 2024-09-12 19:44:12 +02:00
Matthias Pfefferle
15cff15bc1
Fixed: Content handling for Podcasts (#883) 2024-09-09 10:05:18 +02:00
Matthias Pfefferle
57299fc131
Add "Stream" Plugin support (#863)
* Add "Stream" Plugin support

This PR adds support for the Stream Plugin. It maps the Notifications to the Stream plugin, that might help us with debugging.

* send type specific notification action

...to be able to subscribe to only a certain type of notifications.
2024-09-04 15:25:23 +02:00
Matthias Pfefferle
88675ea6c6
Simple Remote-Reply endpoint. (#866)
* Simple Remote-Comment endpoint.

implements #864

* move sanitize to args

* fix PHPDoc

* change from actions to filters

thanks @akirk for your feedback!

* add generic Interaction hook
2024-09-04 13:37:38 +02:00
Matthias Pfefferle
b160961a90 unification 2024-08-14 15:50:39 +02: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
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
879d4aa040 start readme 2024-07-09 10:20:44 +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
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
0e710d0789
Try to lookup local users first (#782) 2024-06-11 10:03:38 +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
f3721c7321
Use Sync for notifications instead. (#765) 2024-05-22 10:25:58 -05: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
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
Alex Kirk
f6b4783ded
Enable Mastodon Apps: allow searching for URLS (#756)
* Add search by URL

* -
2024-05-06 08:27:03 +02:00
Alex Kirk
ff5ad7e6a9
Enable Mastodon Apps Integration: Add remote context (#749)
* EMA: Load remote replies for context

* Use the new Http::get_remote_object method

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-05-03 08:31:01 +02:00
Alex Kirk
5b9131fded
Add missing static keyword and try to lookup if the id is 0 (#745) 2024-04-30 10:27:26 +02:00
Alex Kirk
60f0668677
Enable Mastodon Apps: Add remote outbox fetching (#717)
* Add remote outbox fetching

* Fix linting

* reformatting

* Use the HTTP::get function and introduce caching

* Update includes/class-http.php

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

* Update includes/class-http.php

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

* Use use

* fix indents

* Check for an existing blurhash

* I think this is easier

* Add more error checking

* Remove debug code

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-04-18 11:13:55 +02: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
5988736b14
Add/remote reply (#689) 2024-02-22 16:32:16 +01:00
Alex Kirk
dad6b73cdb
Enable Mastodon Apps: Add followers_count to internal accounts (#676)
* Mock http requests, add followers_count to account object

* Remove one more MockAction

* Add one more assert

* cleanup

* cleanup

* use Users class, to check if user is really an ActivityPub user

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-01-26 17:34:02 +01:00
Alex Kirk
e560d1b5b6
Enable Mastodon Apps: Implement the account endpoint for an external account (#674)
* Implement the account endpoint for an external account

* phpcs

* typos

* Change namespace calling

* Populate with more data

* phpcs

* some formatting

* some phpdoc

* Potentially extend an existing account

props @pfefferle

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

* phpcs

* Switch to using jsonSerialize

---------

Co-authored-by: Matthias Pfefferle <pfefferle@users.noreply.github.com>
2024-01-25 15:54:35 +01:00
Matthias Pfefferle
4fafea35e7
implements a basic followers endpoint for the mastodon api (#666)
* implements a basic followers endpoint for the mastodon api

see https://github.com/akirk/enable-mastodon-apps/pull/67

/cc @akirk

* fix php 5.6 issue
2024-01-18 13:38:02 +01:00
Matthias Pfefferle
2c107eec62
Use FEP-2c59 for WebFinger reference (#636) 2024-01-08 20:01:16 +01:00
Matthias Pfefferle
5ce8f28852 fix nodeinfo integration 2023-12-21 15:19:18 +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
431c4a2676
WebFinger: Add support for URLs (#594)
* add support for URLs

* phpcs

* simplify vars
2023-12-11 10:28:41 +01:00
Matthias Pfefferle
60148a3b65 check if user is available 2023-11-21 14:57:44 +01:00
Matthias Pfefferle
26d0d357c2
Add monthly active users (#530)
* Add monthly active users for better stats on FediDB

* use more optimized query

thanks @mattwiebe

* use transients, improve logic

---------

Co-authored-by: Matt Wiebe <wiebe@automattic.com>
2023-11-07 10:27:20 +01:00
Matthias Pfefferle
d564915fdf
fix function call (#503) 2023-10-12 13:25:50 +02:00
Matthias Pfefferle
fd6cb84ba3 Fix compatibility with WebFinger and NodeInfo plugin 2023-10-11 11:09:37 +02:00
Matthias Pfefferle
133de30b68 remove wp-sweep filter, because post-types are not a problem 2023-06-15 11:44:50 +02:00
Matthias Pfefferle
68002db291 prevent sweeping of followers taxonomies
thanks @akirk

b0db9db87e
2023-05-22 10:58:13 +02:00