b1227d36f1
[CARDS][Note] In conversation time ago information added
2021-12-08 22:48:04 +00:00
778cb57d83
[PLUGIN][ActivityPub] Finish base ActivityStreams 2.0 interface
...
Instructions below
To extend an Activity properties do:
public function onActivityPubValidateActivityStreamsTwoData(string $type_name, array &$validators): bool {
if ($type_name === '{Type}') {
$validators['attribute'] = myValidator::class;
}
return Event::next;
}
The Validator should be of the form:
use ActivityPhp\Type;
use ActivityPhp\Type\Util;
use Plugin\ActivityPub\Util\ModelValidator;
class myValidator extends ModelValidator
{
/**
* Validate Attribute's value
*
* @param mixed $value from JSON's attribute
* @param mixed $container A {Type}
* @return bool
* @throws Exception
*/
public function validate($value, $container): bool
{
// Validate that container is a {Type}
Util::subclassOf($container, Type\Extended\Object\{Type}::class, true);
return {Validation Result};
To act on received activities do:
public function onActivityPubNew{Type}(&$obj): bool {
To add information to Activities being federated by ActivityPub do:
public function ActivityPubAddActivityStreamsTwoData(string $type_name, &$type): bool {
To implement an ActivityStreams 2.0 representation do:
public function onActivityPubActivityStreamsTwoResponse(string $route, arrray $vars, ?TypeResponse &$response = null): bool {
if ($route === '{Object route}') {
$response = ModelResponse::handle($vars[{Object}]);
return Event::stop;
}
return Event::next;
}
2021-12-04 21:05:07 +00:00
4571b18c60
[DEPENDENCIES] Update dependencies
2021-11-25 20:37:53 +00:00
5e4ada7b78
[DEPENDENCIES] Update symfony to 5.3, which fixes a bug with the doctrine postgres message worker
2021-11-15 19:25:53 +00:00
c3705112ba
[DEPENDENCIES] Update dependencies
2021-11-09 23:38:37 +00:00
a55d60d880
[DEPENDENCIES] Update dependencies
2021-10-28 14:31:56 +01:00
51c984849f
[ActivityPub] Port Explorer
2021-10-27 04:22:19 +01:00
8544fe157b
[FreeNetwork] First steps porting webfinger/lrdd to v3, GET webfinger requests already have a basic result
2021-10-27 04:19:29 +01:00
7aad58b440
[DEPENDENCIES] Update composer dependencies
2021-10-27 04:19:27 +01:00
c0c7eb32dc
[DEPENDENCIES] Update composer dependencies
2021-09-18 05:12:07 +01:00
ecb1064d08
[DEPENDENCIES] Add PHPStan as a dev dependency
2021-09-14 13:13:42 +01:00
6ac37bc7fb
[DEPENDENCIES] Update dependencies
2021-09-14 13:13:41 +01:00
f67173061b
[VideoEncoder] Add plugin composer dependency php-ffmpeg/php-ffmpeg
2021-09-14 13:13:32 +01:00
5410f22060
[DEPENDENCIES] Update dependencies
2021-09-14 13:13:29 +01:00
8880405dee
[DEPENDENCIES] Update dependencies
2021-09-14 13:13:24 +01:00
b355f0d590
[DEV] Add PsySH REPL
2021-09-14 13:13:20 +01:00
c3d2f04841
[DEPENDENCIES] Add symfonycasts/reset-password-bundle as a dependency
2021-09-14 13:13:17 +01:00
f2727f9327
[DEPENDENCIES] Add doctrine/doctrine-fixtures-bundle, which allows populating the database in the testing environment
2021-09-14 13:12:59 +01:00
8ad8546aab
[DEPENDENCIES] Add oroinc/doctrine-extensions, which provides cross database platform date functions
2021-09-14 13:12:54 +01:00
b647e31495
[DEPENDENCIES] Add 'embed/embed', 'nyholm/psr7' and 'symfony/dom-crawler'
2021-09-14 13:12:51 +01:00
e834ac2c8d
[DEPENDENCIES] Add php-vips
2021-09-14 13:11:51 +01:00
ed59cce0f9
[COMPOSER][Media] Add example composer.json in plugins/Media
2021-09-14 13:11:49 +01:00
5f4815b12f
[DEPENDENCIES] Add wikimedia/composer-merge-plugin
2021-09-14 13:11:48 +01:00
92d0848280
[DEPENDENCIES] Add jchook/phpunit-assert-throws and update dependencies
2021-09-14 13:10:23 +01:00
121faccb22
[DEPENDENCIES] Update dependencies, including redis-polyfill, to be able to implement a test
2021-09-14 13:10:22 +01:00
f5a6e2f047
[DEPENDENCIES] Upgrade to Symfony 5.2 to get my upstream ICU translation feature
2021-09-14 13:10:21 +01:00
03a0df987e
[DEPENDENCIES] Update all dependencies
2021-09-14 13:10:21 +01:00
9cd5560081
[DOCKER] Bump to PHP version 8
2021-09-14 13:06:57 +01:00
460712e15e
[GIT] Change my email to the new one in all files and bump copyright year
2021-09-14 13:06:56 +01:00
Hugo Sales
ce3cae0ef7
[DEPENDENCIES] Update all dependencies
2021-09-14 13:06:56 +01:00
Hugo Sales
411884bfc5
[DEPENDENCIES] Update dependencies
2021-09-14 13:06:55 +01:00
Hugo Sales
de8fa87079
[DEPENDENCIES] Update dependencies
2021-09-14 13:06:55 +01:00
Hugo Sales
8ce1c1cee6
[DEPENDENCIES] Update dependencies
2021-09-14 13:06:55 +01:00
Hugo Sales
d1ea9d2fdf
[DEPENDENCIES] Update dependencies
2021-09-14 13:06:53 +01:00
Hugo Sales
a5cf89674e
[DEPENDENCY] Add tgalopin/html-sanitizer-bundle and transitively tgalopin/html-sanitizer
2021-09-14 13:05:57 +01:00
Hugo Sales
e3e9ece614
[DEPENDENCY] Update dependencies
2021-09-14 13:05:54 +01:00
Hugo Sales
9c660f39ed
[DEPENDENCIES] Update dependencies
2021-09-14 13:05:50 +01:00
Hugo Sales
7560db4d5f
[DEPENDENCY] Update dependencies
2021-09-14 13:05:46 +01:00
Hugo Sales
ead29a636d
[DEPENDENCY] Add odolbeau/phone-number-bundle
2021-09-14 13:05:44 +01:00
Hugo Sales
672e2b80eb
[DEPENDENCY] Add symfonycasts/verify-email-bundle
2021-09-14 13:05:41 +01:00
Hugo Sales
8f68bde21a
[DEPENDENCY] Add symfony/config as a dependency
2021-09-14 13:05:38 +01:00
Hugo Sales
4776cff969
[DEPENDENCY] Add mock polyfill implementations of the redis and memcached extension
2021-09-14 13:05:35 +01:00
Hugo Sales
2671c37039
[PHP][EXTENSION][POLYFILL] Add php-ds polyfill, which is used if the native extension is not available
2021-09-14 13:05:34 +01:00
Hugo Sales
81dd2e4c72
[DEPENDENCY] Add symfony/cache as a dependency
2021-09-14 13:05:33 +01:00
Hugo Sales
441fd8490f
[DEPENDENCY] Add symfony/messenger as a dependency
2021-09-14 13:05:33 +01:00
Hugo Sales
e97ba23a99
[DEPENDENCY] Update all dependencies
2021-09-14 13:05:32 +01:00
Hugo Sales
5b5ca6ccea
[DEPENDENCY] Add wikimedia/composer-merge-plugin as a dependency, to allow managing plugins
2021-09-14 13:05:32 +01:00
rainydaysavings
ac46c14344
[DEPENDENCY] Add erusev/parsedown and twig/markdown-extra as dependencies
2021-09-14 13:05:32 +01:00
Hugo Sales
8649b72192
[DEPENDENCY] Upgrade Symfony framework from 5.0 to 5.1
2021-09-14 13:05:28 +01:00
Hugo Sales
db5811a77e
[DEPENDENCY][DEV] Added Symfony Bridge PHPUnit
2021-09-14 13:05:27 +01:00