Account created on 5 October 2009, over 15 years ago
#

Recent comments

🇷🇺Russia cuman

Solution

Change on /mysite/public_html/profiles/contrib/social/modules/social_features/social_user/social_user.routing.yml this:

social_user.user_home:
  path: '/user/{user}/home'
  defaults:
    _entity_view: 'user.stream'
  requirements:
    _user_is_logged_in: 'TRUE'
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

social_user.stream:
  path: '/user/{user}/stream'
  defaults:
    _entity_view: 'user.stream'
  requirements:
    _user_is_logged_in: 'TRUE'
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

By:

social_user.user_home:
  path: '/user/{user}/home'
  defaults:
    _entity_view: 'user.stream'
  requirements:
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

social_user.stream:
  path: '/user/{user}/stream'
  defaults:
    _entity_view: 'user.stream'
    _title_callback: 'Drupal\user\Controller\UserController::userTitle'
  requirements:
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

This solution will allow the username to be displayed in the title and will give control over whether the stream is accessible to anonymous users.

But it will be erased during the update. I suggest that the developers consider this solution for inclusion in the next releases.

🇷🇺Russia cuman

Solution

Change on /mysite/public_html/profiles/contrib/social/modules/social_features/social_user/social_user.routing.yml this:

social_user.user_home:
  path: '/user/{user}/home'
  defaults:
    _entity_view: 'user.stream'
  requirements:
    _user_is_logged_in: 'TRUE'
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

social_user.stream:
  path: '/user/{user}/stream'
  defaults:
    _entity_view: 'user.stream'
  requirements:
    _user_is_logged_in: 'TRUE'
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

On:

social_user.user_home:
  path: '/user/{user}/home'
  defaults:
    _entity_view: 'user.stream'
  requirements:
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

social_user.stream:
  path: '/user/{user}/stream'
  defaults:
    _entity_view: 'user.stream'
    _title_callback: 'Drupal\user\Controller\UserController::userTitle'
  requirements:
    _custom_access: '\Drupal\social_user\Controller\SocialUserController::accessUsersPages'

This solution will allow the username to be displayed in the title and will give control over whether the stream is accessible to anonymous users.

But it will be erased during the update. I suggest that the developers consider this solution for inclusion in the next releases.

🇷🇺Russia cuman

But there is one minor inconvenience: https://www.drupal.org/project/expand_collapse_formatter/issues/3239405 🐛 Move to position when collapsing text Active

🇷🇺Russia cuman

This is just a matter of installing the module and field configuration at manage display

It provides a configurable formatter which can be attached to each text area field of an entity

🇷🇺Russia cuman

Two more years have passed...
I join the previous question

🇷🇺Russia cuman

I support the request

Is this even possible with this module?

🇷🇺Russia cuman

For ckeditor 5:

- *   type = Drupal\filter\Plugin\FilterInterface::TYPE_MARKUP_LANGUAGE,
+ *   type = Drupal\filter\Plugin\FilterInterface::TYPE_TRANSFORM_IRREVERSIBLE,

in FilterHashtags.php

🇷🇺Russia cuman

It works:

- *   type = Drupal\filter\Plugin\FilterInterface::TYPE_MARKUP_LANGUAGE,
+ *   type = Drupal\filter\Plugin\FilterInterface::TYPE_TRANSFORM_IRREVERSIBLE,

in FilterHashtags.php

🇷🇺Russia cuman

I don't know how to make patches, so I'm posting files with changes that allow the module to work in D9. You can replace them in your settings and everything will work. If someone makes an official module, that would be great.

True, skeditor 5 does not seem to allow using the hashtag filter.

Production build 0.71.5 2024