Commit graph

893 commits

Author SHA1 Message Date
81aaacc67d Improvements for the "post-reason" 2022-07-29 14:17:53 +00:00
86105635ca Improved message handling / new activity relay handling 2022-07-27 17:39:00 +00:00
8c602071c2 Bookwyrm posts now work 2022-07-23 12:50:15 +00:00
7eb410bed7 Conversation/context is now stored 2022-07-23 06:52:43 +00:00
1d13574225 Fetching of missing posts is reworked 2022-07-21 05:16:14 +00:00
eb8237dd89 Remove unused uid parameter in Item::newURI 2022-07-09 07:39:51 -04:00
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
a7d49877a8 Centralize share tag attribute extraction code in Content\Text\BBCode 2022-06-25 11:46:52 -04:00
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
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
88eacbf66e Ensure parameter 4 of Post\Media::splitAttachment is a boolean value 2022-06-20 14:34:02 -04:00
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
6f1d52cf71
Changed back to suggestions by @MrPetovan 2022-06-18 23:24:08 +02:00
4e437190c5
Renamed variable, no need for "orig_" prefix 2022-06-18 17:50:11 +02:00
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
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
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
34aee64349
Added more type-hints
Signed-off-by: Roland Häder <roland@mxchange.org>
2022-06-15 21:52:51 +02:00
143e4c4a18
Added more known type-hints
Signed-off-by: Roland Häder <roland@mxchange.org>
2022-06-15 21:52:50 +02:00
49dab14215 Only use proxied image links with images 2022-05-21 06:58:26 +00:00
b18880221a
Merge pull request #11531 from annando/display-polls
Improved poll texts for different conditions
2022-05-18 08:16:41 +02:00
c3fd8b39aa Caching for profiles removed 2022-05-17 12:53:31 +00:00
4e3e9dc763 Cache the profile as well 2022-05-17 12:46:55 +00:00
75534fa3f3 Fix warning " Trying to access array offset on value of type bool" 2022-05-17 12:38:39 +00:00
73019284ce Increase cache lifespan / clear cache upon changes 2022-05-17 12:32:25 +00:00
10cdefa232 Fix: Fetch media in shared posts 2022-05-17 07:58:41 +00:00
4daae255d8 Performance: Avoid queries where there is no media or category 2022-05-16 17:06:58 +00:00
62a1cf257e Improved poll texts for different conditions 2022-05-16 06:04:46 +00:00
2dc9b4eda2 Vote text changed 2022-05-16 05:31:53 +00:00
a63caefe3d Polls are now displayed 2022-05-16 04:55:15 +00:00
440b6d7956 Issue 11504: Abstract has to be plaintext 2022-05-15 21:04:01 +00:00
a8839517fe Fix workerqueue entries with wrong priority 2022-05-14 06:36:43 +00:00
7c3173a0ae Avoid endless loop when storing posts 2022-05-10 06:07:26 +00:00
4d359b7de1 Move the plink functionality to the right function 2022-05-05 07:57:52 +00:00
10b453bfc2 Deprecated function removed 2022-05-04 07:49:37 +00:00
60532ee7e4 Fill the item cache when storing item 2022-05-04 06:17:34 +00:00
f6218427a4 Use the uri-id to fetch the contact 2022-05-03 21:51:56 +00:00
a2452b33eb Add missing fields to collection 2022-04-29 10:13:23 +00:00
d3de2497bc Use gsid for the network name 2022-04-29 07:47:24 +00:00
d44641e58c Fetch avatar by id 2022-04-29 07:30:13 +00:00
0380a3e216 Fix: The language detection only searched for farsi 2022-04-19 06:16:44 +00:00
0d8cf06e4a Experimental feature to enter a custom creation date 2022-04-13 05:31:32 +00:00
65071ffc9e Issue 11393: Fix failing preview 2022-04-06 16:26:51 +00:00
029daef997 Only use and accept valid http links as links to an external resource 2022-04-03 07:21:36 +00:00
0aa229489f Improved function description 2022-03-18 07:24:45 -04:00
040abc7743 Use a nicer GUID style format 2022-03-18 07:24:44 -04:00
903bc9b679 Improved support for Mastodon style content warnings 2022-03-06 11:49:55 +00:00
c03ff7833b
Merge pull request #11253 from annando/forum3
More rework to make private communities working
2022-02-18 12:19:57 -05:00
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
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
39724d5079 Add the mentions 2022-02-18 09:12:33 +00:00
ebb4c0f947 tests 2022-02-18 06:12:02 +00:00
0ce756596e Tests again 2022-02-18 05:56:17 +00:00
830a91e586 Avoid failed test 2022-02-18 05:34:18 +00:00
7a5a8c8d68 Improve look of reshared items on the forum profile 2022-02-17 23:06:57 +00:00
234dac49b4 Rrepeat comments as well 2022-02-17 21:44:59 +00:00
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
9ac24a0f36 More rework to make private communities working 2022-02-16 22:56:55 +00:00
33edfc6a5f Fix for private communities 2022-02-15 23:51:13 +00:00
99979019bf Expand system.accept_only_sharer pconfig value to include previous behavior with likes 2022-02-15 15:54:36 -05:00
d019ef57d2 Database version increased, code simplified 2022-02-15 15:44:44 +00:00
29d83c0ffb Block communication with Diaspora for communities 2022-02-15 07:08:02 +00:00
2b0518ac04 unset several table fields before distribution 2022-02-15 06:21:46 +00:00
d404f15312 Improve local forum distribution 2022-02-14 22:04:33 +00:00
e394143148 Private forums are now working via ActivityPub 2022-02-12 18:38:36 +00:00
69d7391f90 Added comment 2022-02-05 16:49:21 +00:00
bd8032f2ba Issue 10365: Event updates are now processed 2022-02-05 11:16:50 +00:00
d4f97f8a4b Issue 10966: Improved logging / reworked forum functionality 2022-01-29 19:09:18 +00:00
a8c6160dd7 Improved handling of several object types 2022-01-23 04:40:45 +00:00
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
a97bfb512a Issue 11104: Don't cann the addons on Diaspora reshare 2021-12-20 21:16:00 +00:00
80da47921e Replace references to UTC_TIMESTAMP in SQL queries with a DateTimeFormat generated parameter 2021-12-04 17:53:08 -05:00
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
1c5aef0685 Escape dollar sign in replace string to prevent placeholder replacement in Model\Item::addShareDataFromOriginal 2021-11-26 12:38:34 -05:00
39c763ce2f Add item_by_link hook to allow connectors to import remote posts 2021-11-23 17:47:02 -05:00
23b10cf2ae Some removed escapeTags calls 2021-11-05 19:59:18 +00:00
63da4a75e9 The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
f6faae5bb1 Replace deprecated log calls 2021-10-20 18:53:52 +00:00
62eb16e9ad
Migrate PermissionSet to Depository paradigm 2021-10-07 19:53:38 +02:00
9935e8e711 Remove event.adjust field
- It was confusing and introduced complexity that wasn't worth the unclear gain
2021-10-03 13:42:32 -04:00
19c3e55ca8 Merge remote-tracking branch 'upstream/2021.09-rc' into user-contact 2021-09-12 12:36:04 +00:00
9191daf12f Fix commenting on public posts 2021-09-12 01:52:10 +00:00
9c14eb0c6b Use centralized function to update contact entries 2021-09-10 18:21:19 +00:00
429a724bc1 Unused parts of the old notification system are removed 2021-08-24 08:53:15 +00:00
7082582655 Add the attachments to the $item for the prepare_body_content_filter hook
- Allows filtering on attachments that are added later to the post content
2021-08-16 05:28:08 -04:00
8e074a5fe4 Simplify event storing 2021-08-10 10:24:14 +00:00
6a23b17c95 Respect the postopts values for scheduled posts 2021-08-06 18:49:17 +00:00
835152d418 Simplified signature creation 2021-08-05 08:42:46 +00:00
Michael Vogel
c73130aa6b Create the Diaspora signature for the correct user 2021-08-05 08:58:50 +02:00
2e2d1bf81d Added option to define a schedule date when posting items 2021-08-01 13:01:31 +00:00
5e75ba3083 guid function is now public 2021-07-30 06:19:25 +00:00
9226b98724 Performance: Moved filter call after content generation 2021-07-27 12:24:22 +00:00
c89533a70b Support for stacked profiler analysis 2021-07-27 04:57:29 +00:00
5a87ccf026 Getter/Setter for theme info 2021-07-25 19:39:10 +00:00
8f46064430 Using getter/setter functions 2021-07-24 20:34:07 +00:00
30aad250df App->contact is now removed 2021-07-24 11:49:11 +00:00
afe3c8954c Simplified functionality to load the profile in the sidebar 2021-07-23 12:39:37 +00:00
f3131c6277 Manually add Persian to post body language detection 2021-07-19 14:00:31 -04:00
2030691f9f Improved event storing / improved performance when fetching events 2021-07-18 15:05:46 +00:00
ea056b93fa Fix notice in events 2021-07-17 20:27:18 +00:00
dd2abf254d Issue 10506 - again. Improved check for pictured in body 2021-07-17 07:55:19 +00:00
d8974c9a2a Function renamed to better reflect the functionality 2021-07-09 06:29:24 +00:00
f29bd23ea8 New function to convert BBCode for a given ID 2021-07-08 13:47:46 +00:00
8bfa15cf23 Simplify the attachment handling 2021-07-06 08:57:49 +00:00
cdc18387fd Use the uri-id directly in the bbcode converter 2021-07-06 05:25:30 +00:00
f8ce59b411 Use the post uri-id for false reshares 2021-07-06 04:36:45 +00:00
aed5e4cc96 New struture for post related links 2021-07-05 18:45:49 +00:00
90588ddb8e Avoid proxyfying images that are removed or replaced later 2021-07-05 07:00:35 +00:00
7e200174d6 Replace attachment links in the body 2021-06-28 04:53:20 +00:00
b46b7b08ba Reduce the usage of the "proxifyUrl" function 2021-06-27 11:50:10 +00:00
de2898988b Inverted condition 2021-06-26 11:31:37 +00:00
258d5fa695 Issue 10433: Only notify when there had been changes 2021-06-26 11:29:58 +00:00
d5e5a6ea23 Fix fatal error: Uncaught TypeError: Argument 1 passed to Friendica\Model\Post\Media::existsByURIId() must be of the type int, null given 2021-06-21 03:53:53 +00:00
56f07d412b Addec comments on forum delivery 2021-06-06 10:07:21 +00:00
73b0af52fb Use "self" 2021-06-06 09:24:12 +00:00
b269a2da87 Respect the "unlisted" setting for forum posts 2021-06-06 09:19:29 +00:00
e2b8d5379b Public forums are now posting unlisted 2021-06-05 18:38:21 +00:00
8a9f633ce2 Merge remote-tracking branch 'upstream/2021.06-rc' into forum-handling 2021-06-05 06:14:06 +00:00
98c314599c Don't lose ownership on forum posting 2021-06-05 06:13:10 +00:00
5df1b59bb3 Fix "Undefined index: post-type in .../src/Model/Item.php on line 2888" 2021-06-02 17:43:30 +00:00
d99286640d
Merge pull request #10348 from annando/fix-diaspora-comment
Fix commenting on mobile to Diaspora
2021-05-31 19:27:53 -04:00
be7a01f086 Fix commenting on mobile to Diaspora 2021-05-31 19:39:50 +00:00
52cf924558 Check for post-type key existence in Model\Item::addVisualAttachments
- Address https://github.com/friendica/friendica/issues/10169#issuecomment-844324800
2021-05-31 08:29:50 -04:00
6f730bd671 Add relevant link after media links had been removed 2021-05-30 06:13:20 +00:00
c6a56985a8 Changed comments 2021-05-26 18:15:07 +00:00
016911a20c Setting the post reason and causer 2021-05-26 14:21:28 +00:00
785f8124ed Issue 10306: Improve local delivery 2021-05-26 09:24:37 +00:00
b7a7ae58e9 Issue 10232: Improved search for embedded media links 2021-05-23 12:35:05 +00:00
916c51c630 Fix fatal errors / added some API todo 2021-05-17 19:20:31 +00:00
dd16bccbc8 Fix for sending content via connectors 2021-05-16 14:30:15 +00:00
5219080149 Fix url comparism 2021-05-13 15:01:35 +00:00
7975bc244d Refine OAuth flow 2021-05-13 11:26:56 +00:00
e9fe92a5d7 Merge remote-tracking branch 'upstream/develop' into api-again 2021-05-11 21:21:32 +00:00
cac038639d Capitalize post action translation strings 2021-05-11 16:01:07 -04:00
bade0a2345 Improved cards handling, simplified Bearer handling 2021-05-11 19:15:05 +00:00
2c6bf754d5 Fix undefined variables in wall_thread.tpl
- Remove unused "num_comments_text" template variable
- Remove unused "item.postops" template variable mention
2021-05-10 18:59:09 -04:00
6be6803983 Improved code structure 2021-05-07 11:41:10 +00:00
95f741c427 Improve data of shared posts 2021-05-07 06:26:41 +00:00
f683f791ee Avoid duplicated attachments / unwanted attachments 2021-05-05 16:46:55 +00:00
be29a42d74 Ignore identical provider and author 2021-05-04 06:08:40 +00:00
b3e511eb0c No link guessing for DFRN / Don't show redundant data 2021-05-04 05:18:03 +00:00
77e1ec6df2 Improved link detection 2021-05-02 17:33:32 +00:00
73c0bff665 Add missing provider url and name 2021-05-01 17:03:50 +00:00
4b12c54345 API: photos are now directly stored as attached data and not in the body anymore 2021-05-01 15:48:19 +00:00
Michael Vogel
4889e82489
Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-04-30 22:31:24 +02:00
3666742e7b Added comment 2021-04-30 06:11:13 +00:00