Commit graph

965 commits

Author SHA1 Message Date
Michael
8bbf3f3699 "MIRROR_FORWARDED" is no more 2022-11-23 21:10:57 +00:00
Michael
352b7a0ac3 "MIRROR_FORWARDED" is removed 2022-11-23 14:00:34 +00:00
Michael
25992b063a Merge remote-tracking branch 'upstream/develop' into no-api-post 2022-11-23 06:28:24 +00:00
Michael
f600f68907 No more automated posts via mod/item.php 2022-11-23 06:27:40 +00:00
Hank Grabowski
548fd3201d The two endpoints for unfavoriting/liking (and related things) was failing because it wasn't using the correct uuid in item.php in processing the action. 2022-11-21 16:49:20 -05:00
Hypolite Petovan
6f93ee7e49 Fix various PHP 8 deprecations 2022-11-19 19:15:47 -05:00
Michael
348156dbcf Simplify the check 2022-11-15 19:55:03 +00:00
Michael
eca52627c1 This fixes duplicated media in quoted posts 2022-11-15 19:48:43 +00:00
Michael
9506bf6989 Avoid duplicate media elements 2022-11-13 23:38:48 +00:00
Michael
246021fdfa Store the source of incoming posts 2022-11-08 11:53:09 -05:00
Michael
664071a0b1 Quoted reshares containing quoted reshares should now look fine 2022-11-07 20:44:20 -05:00
Hypolite Petovan
3e33ec0c0f Suppress InvalidArgument exceptions handling URLs in Model\Item::containsLink 2022-11-05 20:18:14 -04:00
Michael
4dd2d7ebab Transmit the quoted part in the source 2022-11-05 16:25:04 +00:00
Michael
eae1383f48 Merge remote-tracking branch 'upstream/develop' into quote 2022-10-30 11:38:17 +00:00
Michael
b402a760a8 Symplified code 2022-10-30 10:02:12 +00:00
Michael
f569ccbbc2 Code is simplyfied 2022-10-29 22:55:39 +00:00
Michael
3c169b534e Improved handling of native quotes 2022-10-29 22:11:39 +00:00
Hypolite Petovan
a2adb1cd93
Remove unused argument from L10n->tt() call in Model/Item.php 2022-10-28 13:45:09 -04:00
René Wagner
b99e7a9e92
fix exception when adding an poll option without votes 2022-10-28 18:51:35 +02:00
Hypolite Petovan
f418687a71
Merge pull request #12070 from annando/share
Some more improvements for posts with shares
2022-10-27 08:19:23 -04:00
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
2f1336339f
Changes:
- added missing type-hints
- added missing documentation
- changed double-quotes to single
- Setters do ALWAYS return void
2022-10-26 01:29:01 +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
Philipp
b4ffb0bde0
UserSession class [4] - Refactor src/Model/ files 2022-10-20 22:14:50 +02:00
Michael
ee1acba9eb old boot.php functions replaced in /src 2022-10-19 07:56:25 -04:00
Roland Häder
26e0469de7
Merge branch 'develop' into rewrite/gravity-constants 2022-10-18 16:34:40 +02:00
Michael
018858934b The priority is now a class constant 2022-10-17 05:49:55 +00:00
Michael
f8f0dfa91a Detect linked posts and add them as quote 2022-10-16 21:37:05 +00:00
Michael
8e1af9277a Improve quite generation 2022-10-15 13:00:52 +00: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
3e868416c7 Check for post existence 2022-10-14 22:02:25 +00:00
Michael
aeb4645ba6 New field "quote-uri-id" for quoted posts 2022-10-10 22:39:30 +00: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
21bd2a8396 More whitespace 2022-10-07 07:57:20 +00:00
Michael
ef934db614 Moved the share interpretation 2022-10-07 07:41:03 +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
2def5e9f02 Issue 11876: Fix local message distribution 2022-09-27 15:58:16 +00:00
Michael
36668dfdb1 Merge remote-tracking branch 'upstream/2022.09-rc' into duplicates 2022-09-21 03:46:25 +00:00
Michael Vogel
6ba2c4bb01 Added documentation 2022-09-19 12:49:37 +02:00
Michael Vogel
3650feb256 "Count" parameter added 2022-09-19 12:46:28 +02:00
Michael Vogel
f08b08e0d8 Allow to reject specific languages on receiving posts via the relay 2022-09-19 12:36:12 +02:00
Michael
79b64cc44f Detect and remove contact duplicates 2022-09-16 05:00:06 +00:00
Michael
ec8377a8c7 Issue 11893: Postupdate to fix wrong parents 2022-09-06 20:00:06 +00:00
Michael
4304aa9eec Improved language detection 2022-09-04 07:32:46 +00:00
Michael
757a5c2de9 Loglevels are adjusted 2022-08-30 19:45:30 +00:00
Michael
3a840aa22d Some more warnings and erors are fixed 2022-08-28 19:27:21 +00:00
Michael
2173fb38e0 Issue 11853/11867: Fix reshare of public posts 2022-08-27 21:22:49 +00:00
Michael
a0eaff8fd5 Fix issue 11865 2022-08-27 11:43:46 +00:00
Michael
2a0ca80630 The contact-id of a wall posting is always the owner contact 2022-08-22 07:54:48 +00:00
Michael
51331ced9b Improved function to fetch the contact id 2022-08-18 10:13:46 +00:00
Michael
a4f1df68e4 Improved contact-id detection 2022-08-18 07:48:39 +00:00
Michael
531085890a Fetch the parent only - thread parents only on reshares 2022-08-17 19:39:20 +00:00
Michael
6070221364 Improved checks in "storeForUserByUriId" to reduce recursion depth 2022-08-17 05:28:24 +00:00
Michael
4d617c9c48 This cache key doesn't exist anymore 2022-08-15 18:46:10 +00:00
Michael
5c5ae00370 Improved performance when updating contacts 2022-08-13 09:01:48 +00:00
Philipp
a145712f04
Merge pull request #11837 from MrPetovan/task/remove-poke
Remove poke feature
2022-08-11 18:17:11 +02:00
Hypolite Petovan
809beeee9d
Merge pull request #11838 from annando/asynchronous-conversation
Conversation entries will now be stored asynchronous if possible
2022-08-10 10:42:19 -04:00
Michael
d9aee0b3ea Conversation entries will now be stored asynchronous if possible 2022-08-10 09:28:18 +00:00
Hypolite Petovan
4a885a13a6 Remove poke feature 2022-08-09 14:55:55 -04:00
Hypolite Petovan
f917286d6e Use L10n->tt instead of t() for plural strings for polls in Model\Item 2022-08-08 01:52:16 -04:00
Michael
d60d2caef6 Improved queue processing 2022-08-07 19:24:50 +00:00
Michael
06f7244280 New option to disable the fetching of parents 2022-08-04 19:32:36 +00:00
Michael
3945de5e3b No blubb allowed 2022-08-01 00:58:56 +00:00
Michael
0347f4fc66 Remove test code 2022-07-31 16:01:56 +00:00
Michael
b6da15557b The post-reason / protocol is now filled in most cases 2022-07-31 15:54:35 +00:00
Michael
699152e15e Add more post reasons 2022-07-29 21:28:22 +00:00
Michael
0971bcf165 Make the tests happy 2022-07-29 16:05:04 +00:00
Michael
2c32429d8d Fix test 2022-07-29 14:56:40 +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
Michael
8c602071c2 Bookwyrm posts now work 2022-07-23 12:50:15 +00:00
Michael
7eb410bed7 Conversation/context is now stored 2022-07-23 06:52:43 +00:00
Michael
1d13574225 Fetching of missing posts is reworked 2022-07-21 05:16:14 +00:00
Hypolite Petovan
eb8237dd89 Remove unused uid parameter in Item::newURI 2022-07-09 07:39:51 -04:00
Hypolite Petovan
da32fa8fa6 Create ActivityPub\FetchQueue and ActivityPub\FetchQueueItem classes
- These classes are used to flatten the recursive missing activity fetch that can hit PHP's maximum function nesting limit
- The original caller is responsible for processing the remaining queue once the original activity has been fetched
2022-06-25 12:40:54 -04:00
Hypolite Petovan
a7d49877a8 Centralize share tag attribute extraction code in Content\Text\BBCode 2022-06-25 11:46:52 -04:00
Roland Häder
82bb36e13d
Changes:
- Made Item::guidFromUri()'s $host parameter optional (allowing null)
- added some type-hints
- added documentation
- this may fix reported issue in #11630
2022-06-24 03:17:57 +02:00
Tobias Diekershoff
4650ff53d9
Merge pull request #11662 from MrPetovan/bug/11661-splitattachment-null
Ensure parameter 4 of Post\Media::splitAttachment is a boolean value
2022-06-21 06:48:52 +02:00
Hypolite Petovan
88eacbf66e Ensure parameter 4 of Post\Media::splitAttachment is a boolean value 2022-06-20 14:34:02 -04:00
Roland Häder
4fb03cf163
Changes:
- fixed a null value handled over to Friendica\Model\APContact::getByURL()
- added missing type-hints
2022-06-20 19:05:02 +02:00
Roland Häder
6f1d52cf71
Changed back to suggestions by @MrPetovan 2022-06-18 23:24:08 +02:00
Roland Häder
4e437190c5
Renamed variable, no need for "orig_" prefix 2022-06-18 17:50:11 +02:00
Roland Häder
a1a81cdc6b
Continued:
- changed some double-quotes to single
- added missing type-hints
- added missing documentation
- fixed indenting a bit
2022-06-18 17:46:34 +02:00
Roland Häder
5fa954208a
Changes:
- ops, wasn't actually fixing `return;` to proper `return '';`
- added more type-hints
- added TODO ($uid is unused)
2022-06-15 22:28:33 +02:00
Roland Häder
a3fa95e8e4
Changes:
- added more type-hints
- changed `return;` to `return '';` when `string` was requested as returned type-hint
  (thanks to @MrPetovan)
2022-06-15 22:05:38 +02:00
Roland Häder
34aee64349
Added more type-hints
Signed-off-by: Roland Häder <roland@mxchange.org>
2022-06-15 21:52:51 +02:00
Roland Häder
143e4c4a18
Added more known type-hints
Signed-off-by: Roland Häder <roland@mxchange.org>
2022-06-15 21:52:50 +02:00
Michael
49dab14215 Only use proxied image links with images 2022-05-21 06:58:26 +00:00
Tobias Diekershoff
b18880221a
Merge pull request #11531 from annando/display-polls
Improved poll texts for different conditions
2022-05-18 08:16:41 +02:00
Michael
c3fd8b39aa Caching for profiles removed 2022-05-17 12:53:31 +00:00
Michael
4e3e9dc763 Cache the profile as well 2022-05-17 12:46:55 +00:00
Michael
75534fa3f3 Fix warning " Trying to access array offset on value of type bool" 2022-05-17 12:38:39 +00:00
Michael
73019284ce Increase cache lifespan / clear cache upon changes 2022-05-17 12:32:25 +00:00
Michael
10cdefa232 Fix: Fetch media in shared posts 2022-05-17 07:58:41 +00:00
Michael
4daae255d8 Performance: Avoid queries where there is no media or category 2022-05-16 17:06:58 +00:00
Michael
62a1cf257e Improved poll texts for different conditions 2022-05-16 06:04:46 +00:00
Michael
2dc9b4eda2 Vote text changed 2022-05-16 05:31:53 +00:00
Michael
a63caefe3d Polls are now displayed 2022-05-16 04:55:15 +00:00
Michael
440b6d7956 Issue 11504: Abstract has to be plaintext 2022-05-15 21:04:01 +00:00
Michael
a8839517fe Fix workerqueue entries with wrong priority 2022-05-14 06:36:43 +00:00
Michael
7c3173a0ae Avoid endless loop when storing posts 2022-05-10 06:07:26 +00:00
Michael
4d359b7de1 Move the plink functionality to the right function 2022-05-05 07:57:52 +00:00
Michael
10b453bfc2 Deprecated function removed 2022-05-04 07:49:37 +00:00
Michael
60532ee7e4 Fill the item cache when storing item 2022-05-04 06:17:34 +00:00
Michael
f6218427a4 Use the uri-id to fetch the contact 2022-05-03 21:51:56 +00:00
Michael
a2452b33eb Add missing fields to collection 2022-04-29 10:13:23 +00:00
Michael
d3de2497bc Use gsid for the network name 2022-04-29 07:47:24 +00:00
Michael
d44641e58c Fetch avatar by id 2022-04-29 07:30:13 +00:00
Michael
0380a3e216 Fix: The language detection only searched for farsi 2022-04-19 06:16:44 +00:00
Michael
0d8cf06e4a Experimental feature to enter a custom creation date 2022-04-13 05:31:32 +00:00
Michael
65071ffc9e Issue 11393: Fix failing preview 2022-04-06 16:26:51 +00:00
Michael
029daef997 Only use and accept valid http links as links to an external resource 2022-04-03 07:21:36 +00:00
Michael
0aa229489f Improved function description 2022-03-18 07:24:45 -04:00
Michael
040abc7743 Use a nicer GUID style format 2022-03-18 07:24:44 -04:00
Michael
903bc9b679 Improved support for Mastodon style content warnings 2022-03-06 11:49:55 +00:00
Hypolite Petovan
c03ff7833b
Merge pull request #11253 from annando/forum3
More rework to make private communities working
2022-02-18 12:19:57 -05:00
Tobias Diekershoff
4c7d3a6371
Merge pull request #11255 from MrPetovan/task/11245-thread-completion-like
Relax comparison with pconfig system.accept_only_sharer value
2022-02-18 17:09:42 +01:00
Hypolite Petovan
c376081d0d Relax comparison with pconfig system.accept_only_sharer value
- DI::pConfig()->get returns a string value, not an integer
- Removed superfluous default values now that we aren't doing strict type checking
2022-02-18 09:32:30 -05:00
Michael
39724d5079 Add the mentions 2022-02-18 09:12:33 +00:00
Michael
ebb4c0f947 tests 2022-02-18 06:12:02 +00:00
Michael
0ce756596e Tests again 2022-02-18 05:56:17 +00:00
Michael
830a91e586 Avoid failed test 2022-02-18 05:34:18 +00:00
Michael
7a5a8c8d68 Improve look of reshared items on the forum profile 2022-02-17 23:06:57 +00:00
Michael
234dac49b4 Rrepeat comments as well 2022-02-17 21:44:59 +00:00
Michael
51fb265621 Merge remote-tracking branch 'upstream/develop' into forum3 2022-02-17 07:11:50 +00:00
Michael Vogel
618dda7dd2
Merge pull request #11246 from MrPetovan/task/11245-thread-completion-like
Expand system.accept_only_sharer pconfig value to include previous behavior with likes
2022-02-17 08:02:19 +01:00
Michael
9ac24a0f36 More rework to make private communities working 2022-02-16 22:56:55 +00:00
Michael
33edfc6a5f Fix for private communities 2022-02-15 23:51:13 +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
d019ef57d2 Database version increased, code simplified 2022-02-15 15:44:44 +00:00
Michael
29d83c0ffb Block communication with Diaspora for communities 2022-02-15 07:08:02 +00:00
Michael
2b0518ac04 unset several table fields before distribution 2022-02-15 06:21:46 +00:00
Michael
d404f15312 Improve local forum distribution 2022-02-14 22:04:33 +00:00
Michael
e394143148 Private forums are now working via ActivityPub 2022-02-12 18:38:36 +00:00
Michael
69d7391f90 Added comment 2022-02-05 16:49:21 +00:00
Michael
bd8032f2ba Issue 10365: Event updates are now processed 2022-02-05 11:16:50 +00:00
Michael
d4f97f8a4b Issue 10966: Improved logging / reworked forum functionality 2022-01-29 19:09:18 +00:00
Michael
a8c6160dd7 Improved handling of several object types 2022-01-23 04:40:45 +00:00
Hypolite Petovan
18b32b68aa [frio] Add connector-based privacy display 2022-01-09 12:17:52 -05: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
a97bfb512a Issue 11104: Don't cann the addons on Diaspora reshare 2021-12-20 21:16:00 +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
Michael
3d65809a82 Fix media handling upon creation and display 2021-12-04 04:03:18 +00:00
Philipp
a5ab184fb8
Merge pull request #11025 from MrPetovan/task/11022-improve-connector-hooks
Improve connector hooks
2021-11-27 12:37:47 +01:00
Hypolite Petovan
1c5aef0685 Escape dollar sign in replace string to prevent placeholder replacement in Model\Item::addShareDataFromOriginal 2021-11-26 12:38:34 -05:00