Commit graph

6476 commits

Author SHA1 Message Date
Michael
deccea0228 More functions moved to content class 2022-10-27 05:44:44 +00:00
Michael
c65fff6f93 Some more improvements for posts with shares 2022-10-26 17:00:55 +00:00
Roland Häder
039a4b8c72
Fixed issues by php-cs 2022-10-25 23:09:30 +02:00
Roland Häder
ceffd0ef6c
Changed:
- here `Logger::level()` is okay to use
- added more logging in wall_upload.php
- formatted array and put all $array['foo'] = $foo; into a single statement
- <include|require[_once]> are all no functions, but keywords
2022-10-25 21:36:59 +02:00
Roland Häder
71e82bc861
Changed:
- added logger for any reason when upload is aborted
- renamed variables a bit to camel-case style
2022-10-25 21:35:36 +02:00
Michael
1a0b63659b Merge remote-tracking branch 'upstream/develop' into share-rework 2022-10-25 08:31:01 +00:00
Michael
f54a886a5e The "share" handling is improved 2022-10-25 06:37:23 +00:00
Roland Häder
54b89365bb
Fixed:
- Added missing `()` to `getRemoteUserId` which is a method, and not a property
- `Undefined property: Friendica\Core\Session\Model\UserSession::$getRemoteUserId in /var/www/.../htdocs/mod/display.php on line 192`
2022-10-24 18:29:28 +02:00
Philipp
44a9683008
Move "submanage" Session value into own methods 2022-10-21 19:35:34 +02:00
Philipp
bf39b5a948
Fix messages.po issue 2022-10-21 10:19:13 +02:00
Philipp
8dda6144a9
Remove unnecessary "use" 2022-10-20 21:06:06 +02:00
Philipp
bfe68702db
UserSession class [2] - Refactor mod/ files 2022-10-20 21:02:49 +02:00
Michael
5874de4743 old boot.functions replaced in /mod 2022-10-19 04:14:42 +00:00
Roland Häder
54d3d03252
Ops, code-convention not followed 2022-10-18 16:34:45 +02:00
Roland Häder
26e0469de7
Merge branch 'develop' into rewrite/gravity-constants 2022-10-18 16:34:40 +02:00
Roland Häder
abe02a646c
Added missing use statement (again), thanks to @MrPetovan
Yes, we need more unit-testing! Not only to rely on your IDE that it will locate
it for you.
2022-10-18 16:26:35 +02:00
Roland Häder
3a2f5091d9
Added missing use statement, thanks to @MrPetovan 2022-10-18 16:20:21 +02:00
Michael
6f68679375 The EOL constant is removed 2022-10-18 12:29:50 +00:00
Michael
fdfa1f8630 The notice and info have been moved 2022-10-17 18:55:22 +00:00
Michael
4ff7c37f85 Replace "notice" calls 2022-10-17 11:27:32 +00:00
Michael
018858934b The priority is now a class constant 2022-10-17 05:49:55 +00:00
Roland Häder
1f9fc13d03
Rewrites:
From:
````
<?php
$arr = [];
$arr['foo'] = "FOO";
````

To:
````
<?php
$arr['foo'] = "FOO";
````
2022-10-15 00:44:37 +02:00
Roland Häder
da66730e4f
Rewrite:
- moved constants GRAVITY_* from boot.php to Friendica\Model\Item
- also rewrote some array initialization:

From:
````
<?php
$arr = [];
$arr['foo'] = "FOO";
````

To:
````
<?php
$arr['foo'] = "FOO";
````
- added a few type-hints
2022-10-15 00:44:06 +02:00
Michael
0d3aa681b4 The quote functionality is simplified 2022-10-09 21:16:36 +00:00
Michael
4a37c978c2 Issue 11969: Simplified share 2022-10-08 09:36:35 +00:00
Michael
b92e23273d Only use http links 2022-10-07 21:17:39 +00:00
Michael
d646d4eb1d Issue 11969: Only use the simple share with federated posts 2022-10-07 21:09:15 +00:00
Michael
f8d4ab1830 Whitespace removed 2022-10-07 07:55:44 +00:00
Michael
d7a9745ffd Simplified share element 2022-10-07 05:51:36 +00:00
Michael
48182a95fb Improve quote share ("message_id" added) 2022-10-06 21:50:20 +00:00
Michael
4d39ec8b63 Issue 11880: Provide "alt" description from uploaded file 2022-10-03 21:23:04 +00:00
Michael
3911c9450b (Hopefully) SQL improvements 2022-09-24 17:56:07 +00:00
Michael
ff89c1a8bf Template based XML generation is replaced with native XML 2022-09-11 07:00:16 +00:00
Michael
cc43b567cb Some changes after code review 2022-08-31 19:03:37 +00:00
Michael
f7b85092b0 Some more changed log levels 2022-08-31 05:01:22 +00:00
Michael
757a5c2de9 Loglevels are adjusted 2022-08-30 19:45:30 +00:00
Michael
81aaacc67d Improvements for the "post-reason" 2022-07-29 14:17:53 +00:00
Michael
86105635ca Improved message handling / new activity relay handling 2022-07-27 17:39:00 +00:00
Roland Häder
cf8698afe6
This is the correct way:
<?php
if (!isset($foo['account_removed) || $foo['account_removed'])
?>
2022-07-19 18:08:18 +02:00
Hypolite Petovan
eb8237dd89 Remove unused uid parameter in Item::newURI 2022-07-09 07:39:51 -04:00
Roland Häder
ba33c95e97
Fixes:
"Argument 1 passed to Friendica\Content\Text\BBCode::toPlaintext() must be of the type string, null given, called in /var/www/.../htdocs/mod/display.php on line 305"
2022-07-03 14:45:12 +02:00
Roland Häder
90b0b33687
Changed double-quotes to single 2022-06-30 17:43:32 +02:00
Hypolite Petovan
3c70d592f6
Merge pull request #11689 from Quix0r/rewrites/double-quotes-single
Changed more double-quotes to single
2022-06-25 12:02:01 -04:00
Hypolite Petovan
ee96c26ede Replace obsolete posted sort field by created in mod\photos 2022-06-25 11:46:54 -04:00
Roland Häder
804b759df1
Changes:
- let's get rid of that `Database::exists()` is being misused for checking table existence
- reformatted array
2022-06-25 16:48:37 +02:00
Roland Häder
e5cc7a5ab1
Fixes:
- Strings::isHex() should not be misused for checking on NULL
2022-06-20 08:25:45 +02:00
Roland Häder
14bf72e4fe
Changes:
- added some documentation
- added type-hints
2022-06-20 02:48:05 +02:00
Roland Häder
2f961b11bf
Naming-convention:
- variables should start lower-case: $image
2022-06-18 23:16:34 +02:00
Michael
d665b78ea8 Fix forced updates on the display page 2022-06-07 17:34:19 +00:00
Michael
069c1d0b35 Only update when new content arrives 2022-06-06 10:41:07 +00:00
Tobias Diekershoff
fd48a8c9ab
Merge pull request #11601 from annando/issue-11594
Issue 11594: Ensure to create notifications in the user language
2022-06-04 16:52:26 +02:00
Michael
f1913b28e0 Issue 11594: Ensure to create notifications in the user language 2022-06-04 14:08:11 +00:00
Michael
db4ad7883f Revert some of the last changes 2022-06-04 12:11:41 +00:00
Michael
3b2c2e5d33 Don't make photo item visible 2022-06-04 12:02:59 +00:00
Michael
50a0034744 Fix avatar for messages and feeds 2022-06-04 07:57:11 +00:00
Michael
0aee9a054a Fix: Like/Dislike/Reshare actions should now be visible 2022-06-03 17:40:06 +00:00
Michael
36b80eb704 We should now always fetch the user posts 2022-05-31 17:49:08 +00:00
Michael
f4e680c97e Fix: Activities should be be able again on displayed posts 2022-05-31 17:00:21 +00:00
Michael
592665ed28 Fix: Show photos in high resolution 2022-05-31 04:52:50 +00:00
Michael
aabb56c70d Issue 11561: Don't mark photo links as invalid 2022-05-29 19:10:00 +00:00
Michael
1dccc31508 Issue 11469: Repect desktop notification settings 2022-05-29 09:20:06 +00:00
Hypolite Petovan
a924716131 Use the top-level author theme if they're a local user in mod/display 2022-05-28 21:53:57 -04:00
Michael
4ef7f42257 Issue 11470: Check for removed account 2022-05-28 16:21:41 +00:00
Michael
f6167b4cfd New function to exit the program 2022-05-18 02:13:54 +00:00
Michael
4016a576d5 Log the execution time 2022-05-17 20:47:23 +00:00
Michael
3f8da997f4 Fix: Preview failed because of unknown variables 2022-05-17 03:40:38 +00:00
Michael
2433fee461 Changes after code review 2022-05-05 12:23:44 +00:00
Michael
2f74a7bca4 Update display cache when the post had been edited 2022-05-04 07:50:14 +00:00
Michael
fdf70c1047 Make post preview workable 2022-04-29 12:34:10 +00:00
Hypolite Petovan
64330f9895 Move /settings to src/ 2022-04-24 01:21:48 -04:00
Michael
0d8cf06e4a Experimental feature to enter a custom creation date 2022-04-13 05:31:32 +00:00
Hypolite Petovan
3842f02b02
Merge pull request #11402 from annando/featured-endpoint
We now offer an endpoint for featured posts
2022-04-11 11:17:56 -04:00
Michael
c88d306a41 Use the correct content type 2022-04-11 06:07:50 +00:00
Michael
989ac2fda8 Some more "exit" replaced 2022-04-10 11:03:24 +00:00
Michael
4a22034be6 Unified output via the "httpExit" function 2022-04-10 08:31:55 +00:00
Michael
d15023fe4b Unified JSON exit 2022-04-09 11:58:01 +00:00
Philipp
8e2cc678dc
head fixings 2022-04-08 20:41:25 +02:00
Philipp
04866195b4
Remove accept parameter for head/post again 2022-04-03 19:33:09 +02:00
Philipp
e299fc67c8
Introduce "accept_header" as specific argument to the http client 2022-04-02 21:16:53 +02:00
Philipp
73c3b21665
Move ACCEPT constants to own "enum" class 2022-04-02 20:26:11 +02:00
Michael
2ca51f752d Use appropriate "accept" values 2022-03-30 14:39:53 +00:00
Michael
1fae0123ec Some more "accept" parameters are added 2022-03-29 06:24:20 +00:00
Hypolite Petovan
719f47932d Prevent unwarranted password manager auto-completion in settings form fields 2022-03-23 19:43:25 -04:00
Hypolite Petovan
04ac4841f9 Add support for notification visibility settings 2022-03-16 22:03:26 -04:00
Hypolite Petovan
7b9e62198e Suppress a couple MemcachedException
- Replace URL by uri-id in apcontact
- Replace date with a space and nurl by nick and Zulu time in mod/poco
2022-03-15 10:54:00 -04:00
Hypolite Petovan
1ae7cac236 Move mod/ping to module class 2022-03-14 07:57:41 -04:00
Hypolite Petovan
b002f6f027 Remove unused deprecated XML output in mod/ping
- Remove unused parameters localUser and uid in mod/ping
- Unify data array initialization in mod/ping
2022-03-14 07:57:00 -04:00
Hypolite Petovan
5a12bd87f3 Replace Javascript notification string formatting with Smarty templates 2022-03-14 07:56:58 -04:00
Hypolite Petovan
b7cee324b0 Add legacy notification endpoint for deprecated Notify entity
- Add dependencies to Notifications\Notification module class
2022-03-14 07:56:21 -04:00
Hypolite Petovan
d15ebb6fd3 Normalize base URL usage in admin templates 2022-03-11 23:14:21 -05:00
Michael
421dd028ce Fix storing mail settings 2022-03-05 13:08:09 +00:00
Michael
f853d58198 API: Forum mentions are now working 2022-03-02 06:59:07 +00:00
Hypolite Petovan
6a1f9a7fa3 Move unfollow protocol to worker task
- Add uid parameter to unfollow hook
- Rework and unify Contact::unfollow, Contact::removeSharer and Contact::terminateFriendship
- Add missing twitterUser property to Twitter\Friendships\Destroy module
2022-02-24 09:35:54 -05:00
Michael
51fb265621 Merge remote-tracking branch 'upstream/develop' into forum3 2022-02-17 07:11:50 +00:00
Michael
9ac24a0f36 More rework to make private communities working 2022-02-16 22:56:55 +00:00
Hypolite Petovan
99979019bf Expand system.accept_only_sharer pconfig value to include previous behavior with likes 2022-02-15 15:54:36 -05:00
Michael
9c60b4127b Merge remote-tracking branch 'upstream/develop' into private-forums 2022-02-13 07:03:20 +00:00
Michael
e394143148 Private forums are now working via ActivityPub 2022-02-12 18:38:36 +00:00
Michael
a3ba3fb383 Simplify author contact fetching 2022-02-12 10:46:17 +00:00
Michael
4658cc505b Issue 11156: Display "49+" notifications if there are 50 or more 2022-02-01 05:27:11 +00:00
Michael
df9ed6af0e Notifications for non contacts 2022-01-30 13:46:11 +00:00
Michael
8034a48ffe "inform" functionality moved / unified functionality 2022-01-30 10:56:13 +00:00
Michael
0e5ee88c43 Only use mention and exclusive mention 2022-01-30 08:48:09 +00:00
Michael
b9ea7adbda Issue 10966: Perform forum handling with the unified format 2022-01-30 04:48:22 +00:00
Michael
60af1314a0 Issue 11182: prevent personal notes from being altered 2022-01-25 17:52:53 +00:00
Philipp
c588b280d7
Fix all license header & be less aggressive 2022-01-07 00:35:28 +01:00
Philipp
543e4be0a6
Replace 'REQUEST_METHOD' with App\Arguments::getMethod() 2022-01-04 20:59:28 +01:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Michael
33f080d118 Remove obsolete network guessing function 2021-12-07 07:28:55 +00:00
Hypolite Petovan
80da47921e Replace references to UTC_TIMESTAMP in SQL queries with a DateTimeFormat generated parameter 2021-12-04 17:53:08 -05:00
Hypolite Petovan
e7d87d3524 Suppress notice messages related to the VCard::getHTML call in mod/display
- Address https://soc.schuerz.at/display/4edd2508-6661-a8d1-f168-b2a245440386
2021-12-02 09:45:32 -05:00
Hypolite Petovan
a53add06f2 Fix wrong call to module in mod/display 2021-12-02 09:44:56 -05:00
Hypolite Petovan
60bb66e18d [frio] Make connector settings panels keyboard activated
- Keep the connector panel open after form was submitted
2021-11-29 06:03:59 -05:00
Hypolite Petovan
0ca420c949 [frio] Make addon settings panels keyboard actionable
- Keep the addon panel open after form was submitted
2021-11-29 06:03:59 -05:00
Philipp
561aba18e3
Introduce Response for Modules to create a testable way for module responses 2021-11-27 12:40:38 +01:00
Michael
9c61bd3ffc Lists and tweet search moved 2021-11-25 11:16:47 +00:00
Hypolite Petovan
197c77f43d Move contact conversation to its own module class 2021-11-21 19:21:58 -05:00
Hypolite Petovan
8c8c6fe720 Normalize quote style in mode/repair_ostatus 2021-11-21 18:59:36 -05:00
Philipp
645e4edc63
Revert "Revert "Replace Module::init() with Constructors""
This reverts commit 89d6c89b67.
2021-11-19 20:18:48 +01:00
Hypolite Petovan
89d6c89b67
Revert "Replace Module::init() with Constructors" 2021-11-19 07:23:23 -05:00
Hypolite Petovan
0b6e0566d7
Merge pull request #10987 from annando/api4
API: moved classes / unified user array creation
2021-11-19 06:13:52 -05:00
Michael
b67c10812a Merge remote-tracking branch 'upstream/develop' into api4 2021-11-18 20:15:57 +00:00
Michael
ebdfe388de Fixing upload 2021-11-17 22:37:02 +00:00
Michael
cdedf348e4 Replaced most "api_get_user" calls with newer BaseApi calls 2021-11-17 21:28:51 +00:00
Philipp
ce578a7745
Replace Module::init() with Constructors 2021-11-17 22:14:33 +01:00
Hypolite Petovan
190efcefad
Merge pull request #10977 from nupplaphil/feat/dynamic_modules
Introduce interface for `Module`s
2021-11-17 06:36:54 -05:00
Hypolite Petovan
97ceb89309 [frio] Wire edit form formatting button aria labels 2021-11-14 19:55:50 -05:00
Philipp
489cd0884a
Make BaseModule methods dynamic 2021-11-14 23:49:06 +01:00
Michael
f5b47fccce API: spme Functionality is transferred to new places 2021-11-08 21:35:41 +00:00
Michael
789361de5f The API is now using the router 2021-11-08 07:23:18 +00:00
Hypolite Petovan
8d550ad4e8
Merge pull request #10961 from annando/deprecated
Removed and replaced deprecated functionalities
2021-11-07 10:53:17 -05:00
Michael Vogel
b60c342a8f
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-07 16:45:36 +01:00
Michael
eb1b2256a0 Removed and replaced deprecated functionalities 2021-11-07 14:00:47 +00:00
Michael Vogel
a12144bf61
Apply suggestions from code review
Co-authored-by: Philipp <admin+Github@philipp.info>
2021-11-07 13:57:24 +01:00
Michael
cfac13790b "escapeTags" is finally removed 2021-11-07 09:18:25 +00:00
Michael
359dad4244 Some more "escapeTags" removed 2021-11-06 20:25:21 +00:00
Michael Vogel
5974d045a5
Update mod/salmon.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-06 00:55:58 +01:00
Michael
23b10cf2ae Some removed escapeTags calls 2021-11-05 19:59:18 +00:00
Michael
63da4a75e9 The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
Philipp
68046573a4
Restructure Cache to follow new paradigm 2021-10-26 22:11:06 +02:00
Michael Vogel
81c9d8d479
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-10-25 21:27:21 +02:00
Michael
87673fd0c5 Merge remote-tracking branch 'upstream/develop' into logging 2021-10-25 18:56:29 +00:00
Hypolite Petovan
98ab473361 Fix path template variable structure in mod/fbrowser
- Address https://github.com/friendica/friendica/issues/10757#issuecomment-950205848
2021-10-24 23:07:24 -04:00
Michael
f6faae5bb1 Replace deprecated log calls 2021-10-20 18:53:52 +00:00
Hypolite Petovan
353cd66b26
Merge pull request #10900 from annando/notify
`enotify.php` is removed and its functions were transferred
2021-10-19 22:22:41 -04:00
Michael Vogel
e2d2f42802
Merge pull request #10901 from nupplaphil/bug/notify_post
Fix DB errors
2021-10-19 22:43:11 +02:00
Philipp
2958726804
Fix salmon selection 2021-10-19 22:25:49 +02:00
Michael
2f1f6f6fb2 Replace "notification" call with new function, removing enotify.php 2021-10-19 19:45:36 +00:00
Michael
3781b34272 PROFILE_PHOTOS is mostly removed and replaced 2021-10-19 19:15:28 +00:00