314859b775
[ENTITY][NoteTag] Add 'use_canonical' column, which indicates whether the user wanted to canonicalize the tag or not (for themselves, the canonical field is still filled, for blocks)
2021-12-05 17:54:58 +00:00
1457aa8220
[UI][PLUGIN][DeleteNote][EVENT] Add 'AddExtraNoteActions' event, which can be leveraged to add extra actions on each note, but which are normally collapsed
2021-12-05 17:54:58 +00:00
969df371dd
[COMPONENT][Avatar] Small refactor
2021-12-05 17:54:58 +00:00
9512890264
[PLUGIN][ActivityPub] Implement Actor Update
...
Diverse minor bug fixes
2021-12-05 03:11:08 +00:00
9506909e7a
[COMPONENT][FreeNetwork] Iterate documentation
2021-12-04 21:05:09 +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
044649c745
[PLUGIN][VideoEncoder] Some videos don't have images (video stream), only audio, handle that
2021-12-03 03:32:44 +00:00
4501b7e85e
[CONTROLLER][UserPanel] Re-organised all settings forms. Added email, password, language forms separated from account or personal account info
...
[CORE][Form] Better PHPDoc and used is_null() for checks
[ENTITY][LocalUser] Add setNicknameSanitisedAndCached
[UTIL][Exception] Better NicknameNotAllowedException default message
2021-12-03 03:32:43 +00:00
e16fade490
[CONFIGURATION] Add webp to attachments:supported whitelist
2021-12-03 03:32:43 +00:00
582519e13e
[COMPONENT][Attachment] Do not show download links for non-local attachments
2021-12-03 03:32:43 +00:00
ff5f346fec
[PLUGINS][Oomox] Further checks done when handling form requests. Improved documentation, fixed typos and diminished repeated calls
2021-12-03 03:32:38 +00:00
ba632b4514
[CSS] Note content text decoration underline set on anchor links
2021-12-03 01:19:09 +00:00
b66873e289
[PLUGIN][StoreRemoteMedia] Do not save empty files
2021-12-03 01:16:57 +00:00
70ed04a7db
[COMPONENT][Link] Fix some minor issues with empty headed links, typo in event handler's name, and refactor entity to inside component
2021-12-03 00:46:52 +00:00
56d653d980
[CSS] Adding margin-left to .note-author-nickname
2021-12-02 22:55:01 +00:00
bded039282
[PLUGIN][Embed] try catch absence of favicon
2021-12-02 22:49:27 +00:00
d802af6d91
[COMPONENTS] Accesskey highlight class set
2021-12-02 22:44:58 +00:00
a1b002659f
[CSS] Focusable elements only show accent inset shadow when focused by keyboard, not by any other way
2021-12-02 22:40:27 +00:00
2e11001b8f
[PLUGIN][Embed] Fix links
2021-12-02 22:21:49 +00:00
e5f09a26d4
[CSS] Ultra widescreen dimensions fix
2021-12-02 22:21:49 +00:00
6ce78141a8
[CONTROLLER][UserPanel] Actor nickname cache is updated
2021-12-02 22:21:47 +00:00
5130e7e70f
[COMPONENT][Attachment] Update routes to use /object/ namespace
2021-12-02 21:26:06 +00:00
2445b5318d
[PLUGIN][Embed] Make it work when content-length header is not provided
2021-12-02 21:26:06 +00:00
bfec10fc95
[COMPONENT][Attachment][Entity][Attachment] getThumbnail can be null
2021-12-02 21:26:05 +00:00
2967b544f5
[CONTROLLER][UserPanel] Nickname now normalized
2021-12-02 20:49:10 +00:00
12557a1e16
[PLUGINS][Oomox] Reset theme colors added
2021-12-02 20:26:27 +00:00
863cfbdedc
[CONTROLLER] Old password input type set to password
...
[CONTROLLER] Notification form fields requirement set to false
2021-12-02 19:32:39 +00:00
f5ec099e9a
[COMPONENT][Tag][Search] Fix typo in event handler name mismatch
2021-12-02 19:17:37 +00:00
772ec6efcf
[UI] Set html img width and height attributes for avatar
2021-12-02 19:13:33 +00:00
92d5f3ec1e
[COMPONENTS][Avatar] Delete correct cache key on avatar update
2021-12-02 19:13:23 +00:00
d915b4b628
[CSS] Note language note view polish
2021-12-02 18:36:18 +00:00
f35dbbd8c1
[COMPONENTS][Search] Polished template
...
[COMPONENTS][Search] Fix event typo
2021-12-02 16:37:17 +00:00
5cd96669fd
[COMPONENTS] LeftPanel and RightPanel checkbox hack trick
...
The anchor used for the accessibility menu preceded the left/right panel sections, rendering the checkbox useless
2021-12-02 15:49:09 +00:00
9482bb2254
[CSS] Avatar max-height defined
2021-12-02 15:30:24 +00:00
eeaad19754
[Attachment] Move Controller and Entities to a Component
...
There's no problem in having the templates in the core
2021-12-02 15:14:07 +00:00
37ef8cddfa
[ENTITY][Note] Add getLanguageLocale() and getNoteLanguageShortDisplay()
...
[CARDS][Note] Render note's language short display
[PLUGINS] Bring back titles to Reply, Repeat and Favourite actions
2021-12-02 15:05:49 +00:00
d044039272
[FreeNetwork] Initial multi-protocol support
2021-12-02 14:23:21 +00:00
dbaee08038
[FreeNetwork] Move mentions logic from AP to FN and handle local webfinger mentions properly
2021-12-02 11:12:04 +00:00
53c46127c1
[ActivityPub][Explorer] Store remote's url properly
2021-12-02 11:12:03 +00:00
30f3e2c462
[FEEDS][Home] Fix bug nickname is not unique, but it is for local users
2021-12-02 11:12:03 +00:00
d64bd17422
[COMPONENTS][LeftPanel] Fix template filename
2021-12-01 22:19:00 +00:00
eeb42ef8ea
[CONTROLLER][Actor] Provide template with all notes by actor
...
[ENTITY][Note] Add getAllNotesByActor
[TWIG] Actor profile page now renders all notes by the actor
2021-12-01 21:41:41 +00:00
6bcd42a3a7
[TWIG][Base] Remove user has to be logged in condition when rendering right panel.
2021-12-01 21:15:31 +00:00
5d8bd6c74a
[TWIG][Note] Add single note view
2021-12-01 21:07:14 +00:00
6f543ccc06
[ActivityPub][Model][Activity] Translate including objects
2021-12-01 20:53:51 +00:00
e7ee558f4a
[TWIG] Fix empty accessibility menu anchor, accesskey anchors placement
...
[CSS] Dark theme hover/focus border, settings page form visibility
2021-12-01 20:29:11 +00:00
030c966b74
[DOCKER][Accessibility] Add pa11y docker image for automated accessibility tests
...
TODO: Testing within local social container
2021-12-01 20:29:06 +00:00
dcbb3488c4
[PLUGINS][Reply] Fix onAppendCardNote return
2021-12-01 19:47:45 +00:00
fa7fa81e35
[ICONS][Edit] Add icon class twig block
...
[CSS] Move edit feed link aligment rules to base.css
2021-12-01 19:47:45 +00:00
4155926ebf
[CSS] Removing arbitrary unit values
2021-12-01 19:47:44 +00:00