1
0
Fork 0
friendica_2020-09-1_sharedH.../src/Module
Michael Vogel 0209c39e0a
Update src/Module/Api/Twitter/Statuses/Update.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-12-12 15:51:14 +01:00
..
ActivityPub Tighten profile restriction feature 2022-12-01 08:03:35 -05:00
Admin Rules added 2022-12-03 21:15:08 +00:00
Api Update src/Module/Api/Twitter/Statuses/Update.php 2022-12-12 15:51:14 +01:00
Blocklist/Domain
Calendar Escape HTML in event mapping callback 2022-12-04 06:37:37 -05:00
Contact Contact suggestions are now cached 2022-11-30 05:59:27 +00:00
Conversation
Debug
DFRN Remove parameter-less call of OStatus\Salmon module in DFRN\Notify 2022-12-10 11:45:53 -05:00
Diaspora
Filer
HTTPException
Item Tighten profile restriction feature 2022-12-01 08:03:35 -05:00
Media Update src/Module/Media/Photo/Upload.php 2022-11-30 18:16:55 +01:00
Moderation Only calculate the last login on a "date" level 2022-12-11 03:26:45 +00:00
Notifications Delete introductions when referenced contact id doesn't exist anymore in Ping module 2022-12-10 11:42:03 -05:00
OAuth
OStatus Remove parameter-less call of OStatus\Salmon module in DFRN\Notify 2022-12-10 11:45:53 -05:00
Post Issue 12189: Quote share a feed now shares the linked feed url 2022-11-24 06:36:08 +00:00
Profile Issue 11915: Show reshared posts for contacts 2022-12-04 21:57:58 +00:00
Search Reorder search to try redirecting to post first 2022-11-24 22:21:51 -05:00
Security
Settings The appearanxe of the link preview is now configurable 2022-12-07 07:02:04 +00:00
Special
Update Tighten profile restriction feature 2022-12-01 08:03:35 -05:00
User Fix null value passed to string functions deprecation notices 2022-11-25 08:13:05 -05:00
WellKnown
AccountManagementControlDocument.php
Acctlink.php
Apps.php
Attach.php Move mod/fbrowser to src\Modules\Attachment|Photos\Browser 2022-11-26 22:26:30 +01:00
BaseAdmin.php
BaseApi.php
BaseModeration.php
BaseNotifications.php
BaseProfile.php Add new public_calendar additional feature 2022-12-01 08:06:07 -05:00
BaseSearch.php
BaseSettings.php
Bookmarklet.php
Contact.php
Credits.php
Delegation.php
Directory.php
Feed.php Tighten profile restriction feature 2022-12-01 08:03:35 -05:00
FollowConfirm.php
Friendica.php
FriendSuggest.php
Group.php
Hashtag.php
HCard.php
Help.php
Home.php Fix various PHP 8 deprecations 2022-11-19 19:15:47 -05:00
Install.php
Invite.php
Magic.php
Maintenance.php
Manifest.php
NodeInfo110.php
NodeInfo120.php
NodeInfo210.php
NoScrape.php Check for last-activity value before feeding it to strtotime in Module\NoScrape 2022-12-10 11:38:41 -05:00
Oembed.php
OpenSearch.php
Owa.php
ParseUrl.php
PermissionTooltip.php
Photo.php Add more BlurHash to avoid not being able to display some picture 2022-12-11 09:56:30 +00:00
Proxy.php
PublicRSAKey.php [Composer] Upgrade to phpseclib version 3 2022-11-25 08:13:05 -05:00
RandomProfile.php
README.md
ReallySimpleDiscovery.php
Register.php Ensure register records aren't created with uid = 0 2022-11-18 16:04:02 -05:00
Response.php
RobotsTxt.php
Smilies.php
Statistics.php
Theme.php
ThemeDetails.php
ToggleMobile.php
Tos.php Remove superfluous strlen call in Module\Tos 2022-12-10 11:38:42 -05:00
Welcome.php
Xrd.php

Friendica\Module

The Module namespace contains the different modules of Friendica. Each module is loaded through the App.

There are mainly two types of modules:

  • frontend modules to interact with users
  • backend modules to interact with machine requests

Frontend modules

This type of modules mainly needs a template, which are generally located at view/templates/.

A frontend module should extend the BaseModule, especially the content() method.

Backend modules

This type of modules mainly responds either with encoded XML or with JSON output. It isn't intended to respond with human readable text.

A frontend module should extend the BaseModule, especially the rawContent() method.

Routing

Every module needs to be accessed within a route. The routes are defined inside Router->collectRoutes().

Use the given routes as a pattern for further routes.

The routing library and further documentation can be found here.