Commit Graph

704 Commits

Author SHA1 Message Date
Hank Grabowski 8d9e0b4eae Fix Mastodon API Reshared statuses are a stub w/content in reblog field 2023-07-26 19:12:23 +02:00
Michael 8d49ea29d2 Fix v1/instance endpoint to make Buffer work 2023-07-25 20:14:26 +00:00
Michael 8bb33dccd1 Unified BBCode conversion, improved proxy functionality 2023-07-15 20:12:08 +00:00
Tobias Diekershoff 1359b171af
Merge pull request #13268 from MrPetovan/task/normalize-item-action-label
Normalize item action label key name
2023-07-10 10:01:50 +02:00
Hypolite Petovan 37131a6785 Normalize item action label key name
- Remove unused $item.return reference in asynchronous item action URLs
2023-07-09 21:00:36 -04:00
Hypolite Petovan c312d11dab Add Report Create module
WIP
2023-07-09 18:32:43 -04:00
Hypolite Petovan 706444bdb2 Decouple conversation creation from rendering
- This allows to separately obtain a list of threads for rendering without having to deal with an already-formed HTML output
2023-07-08 16:57:52 -04:00
Philipp Holzer f693032109
Fix dynamic properties in API\Twitter\User object 2023-07-05 23:15:23 +02:00
Roland Häder 9f1c93eb91
Changes:
- renamed 'api_mastodon_banner' to 'mastodon_banner' and moved it to 'api'
  configuration group
2023-07-03 19:55:47 +02:00
Roland Häder c5a52271df
Added:
- config key 'config', 'api_mastodon_banner', see discussion at https://b65.me.in/display/67fef576-1564-a27a-405e-c17705255720
- the administrator can now customize it for Mastodon contacts
- credits goes to @betamax65@b65.me.in
2023-07-03 14:59:26 +02:00
Michael 8a50101eea Merge remote-tracking branch 'upstream/develop' into lemmy 2023-06-18 17:38:39 +00:00
Michael 4c3f2441f7 Display the contact alias if the URL is no HTTP link 2023-06-18 16:49:38 +00:00
anubis2814 db3604b479
Update Post.php
made code neater
2023-06-15 14:04:34 -04:00
Anubis2814 1f06089e5e Added content warning button 2023-06-15 12:55:54 -04:00
Hypolite Petovan 3385147f25 Replace "forum" by "group" in the rest of the code 2023-06-02 13:52:41 -04:00
Hypolite Petovan 4f7740264e Replace "group" with "circle" in the rest of the code
- Remaining mentions already mean "forum"
2023-05-27 22:01:45 -04:00
Michael 5b23c1c67f Support for Bluesky reshares in the core 2023-05-24 05:55:36 +00:00
Michael 1744f6b2c3 Add menu entry to directly collapse posts 2023-05-20 12:24:19 +00:00
Michael 45c1d74750 The Emojipicker is added to Frio for new posts 2023-05-04 10:54:29 +00:00
Hypolite Petovan 9dc5557fb7
Merge pull request #13018 from annando/share-federated
Only share from federated posts
2023-04-22 08:34:53 -04:00
Michael d1d1685e24 Only share from federated posts 2023-04-22 10:40:58 +00:00
Hypolite Petovan 261ba161a2 Convert ContactResult->url parameter to UriInterface 2023-04-20 07:43:17 -04:00
Michael d1af85b27f Handle exception on "head" / missing class variable added 2023-04-11 02:11:39 +00:00
Hypolite Petovan 09f9559769 Reformat Factory\Api\Mastodon\Status
- Simplify boolean operations
- Add ACLFormatter dependency to constructor
- Fix white space alignment
2023-04-02 23:21:39 -04:00
Hypolite Petovan 1a21f19f42 Add exception throw when contact data isn't available in Factory/Api/Mastodon/Relationship
- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1445323023
- Remove default value to parameter which array keys are used in method body
2023-03-27 21:31:53 -04:00
Josh Soref 29fd7b9f68 spelling: canvas
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 18:59:11 -04:00
marcin mikołajczak ddf5e0641a Move
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-03-26 21:54:05 +02:00
marcin mikołajczak bdafe063d8 Return `disliked` in Mastodon API
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2023-03-26 21:47:44 +02:00
Hank Grabowski 60f2c67b66 Change visibility data on Mastodon posts to be array of IDs 2023-03-21 13:15:42 -04:00
Hank Grabowski 97585083d9 Add visibility to user's statuses in Mastodon API
- and remove view count object if not user's status
2023-03-20 17:42:08 -04:00
Hank Grabowski c609affeca Fix Mastodon InstanceV2 structure needs image max size under mediaAttachment 2023-03-17 15:56:42 -04:00
Michael 7382c3bd86 Set the field to "null" 2023-03-14 16:18:16 +00:00
Michael 6ffecd2b74 "edited_at" must only be displayed when the entry had been updated 2023-03-14 16:07:54 +00:00
Michael ea3a56ccfa API: Fix dateformat on status 2023-03-02 21:07:33 +00:00
Hank Grabowski 1e48978664 Use Mastodon standard edited_at field for tracking edit time 2023-02-28 15:02:02 -05:00
Hank Grabowski 80896936b2 Remove extra lines from TimelineOrderByTypes.php to get rid of server side only formatting error 2023-02-28 13:12:11 -05:00
Hank Grabowski fae67b6d88 Remove extra line between copyright and namespace 2023-02-28 11:44:49 -05:00
Hank Grabowski 32bb097604 Correct format/style errors 2023-02-28 11:41:53 -05:00
Hank Grabowski 1f6578229e Add additional Mastodon timeline sorting date types and data to output 2023-02-28 10:36:11 -05:00
Hank Grabowski 1adb23d8fd Change timestamp to be DateTime object not integers in Mastodon Timeline API 2023-02-28 08:20:08 -05:00
Hank Grabowski 6ffd3a3f8c Merge branch 'develop' into mastodon-timeline-temporal-paging 2023-02-27 20:20:40 -05:00
Michael a5b774d2ef Without "->__toString()" 2023-02-27 21:15:11 +00:00
Michael cbb9cb6c24 Fix v1 endpoint 2023-02-27 21:02:59 +00:00
Philipp 61deaec4be
Merge pull request #12848 from HankG/fix-mastodon-v2-active-month-naming-error
Fix mastodon v2 active month naming error
2023-02-27 19:51:25 +01:00
Hank Grabowski 2f3a7c422f Fix whitespace issue 2023-02-27 13:47:02 -05:00
Hank Grabowski b375f64e0e Add int hint to Mastodon V2 UserStats.php 2023-02-27 13:04:24 -05:00
Philipp a40ecb3902
Merge pull request #12843 from annando/fetchraw-attachments
Catch all errors thrown by "fetchRaw"
2023-02-27 08:24:05 +01:00
Hank Grabowski bb29a07efa Change Mastodon Instance V2 active_monthly field to correct active_month 2023-02-26 22:57:10 -05:00
Hank Grabowski 706a42ffd0 Change Mastodon Instance V2 active_monthly field to correct active_month 2023-02-26 22:56:56 -05:00
Michael 6e3602591d Use "Exception" 2023-02-26 22:43:45 +00:00
Philipp de53109a49
Merge pull request #12844 from HankG/mastodon-status-add-delivery-data
Add Delivery Information to Mastodon Status API Entity
2023-02-26 23:03:30 +01:00
Hank Grabowski 9ab73c30ef Allow delivery stats to be null. 2023-02-26 11:27:01 -05:00
Hank Grabowski 0f811abc50 Add nullability to InstanceV2 Contact type for account parameter 2023-02-26 09:38:22 -05:00
Hank Grabowski 751e335b4b Add delivery status data to Mastodon Status Friendica Extension 2023-02-25 14:23:59 -05:00
Hank Grabowski 9c5f3ae58f Simply Timeline Home temporal endpoint to reuse min_id and max_id 2023-02-22 11:02:52 -05:00
Hank Grabowski 818075d039 Implement time based paging for Mastodon Home Timeline Endpoint 2023-02-21 15:37:32 -05:00
Hank Grabowski 9c9abd4400 Merge branch 'develop' into dislike-for-mastodon-endpoints 2023-02-20 15:52:09 -05:00
Hank Grabowski 3a8929be1f Add dislike counts to Mastodon API Statuses in FriendicaExtension 2023-02-20 15:31:15 -05:00
Hank Grabowski 41b5ec0262 Merge branch 'develop' into mastodon-instance-v2-implementation 2023-02-20 13:22:37 -05:00
Hank Grabowski 71a7c0a4de Refactor Mastodon API InstanceV2 so objects are simple and BI in API layer 2023-02-20 13:22:29 -05:00
Hypolite Petovan ee5acc29c3
Merge pull request #12802 from nupplaphil/feat/system_url_handling
Transform BaseURL to URIInterface conform class with less business logic
2023-02-20 08:43:00 -05:00
Hank Grabowski 0bb2d00e70 Add License header to FriendicaExtensions file 2023-02-20 08:05:46 -05:00
Hank Grabowski fcf59dc245 Fix binary_operator_spaces errors 2023-02-20 08:05:01 -05:00
Hank Grabowski 0451f2dfa1 Add Mastodon Instance V2 API endpoint /api/v2/instance 2023-02-20 07:51:20 -05:00
Hank Grabowski 8101739edd Change Mastodon API documentation URL for V1 Instance type 2023-02-19 17:32:13 -05:00
Hank Grabowski cd957a7f66 Remove extraneous __get since needed capability found in parent class 2023-02-19 07:59:53 -05:00
Hank Grabowski 3bb0bda880 Remove documentation stating friendica extensions can be null since always set 2023-02-19 07:58:10 -05:00
Philipp Holzer f0c29edcde
Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Hank Grabowski 34c4849341 Merge branch 'develop' into mastodon-status-post-with-title 2023-02-18 10:30:57 -05:00
Michael 608b5a37a4 Activities are now displayed as Emojis 2023-02-18 06:56:03 +00:00
Hank Grabowski 40ee96512a Add extension to Mastodon Status object for Friendica-specific things
- first entry is the title
2023-02-17 17:42:00 -05:00
Hank Grabowski 4964e947c9 Delete unused Mastodon FollowRequest object (can just use Account now) 2023-02-15 15:43:17 -05:00
Hank Grabowski 637b6f5a17 Change FollowRequest to return the user ID so is compatible with POST endpoint 2023-02-15 12:30:49 -05:00
Michael 18dcf77a6d Desciption added 2023-02-01 16:33:07 +00:00
Michael 101b3c9703 First implementation of ActivityPub C2S 2023-01-29 14:41:14 +00:00
Hypolite Petovan 0259af1118 Cast key values to int in Mastodon\Stats
- Address https://sekretaerbaer.de/display/61b27817-3763-cd4c-5fca-b4d397968464
2023-01-25 22:11:22 -05:00
Michael d0373ab414 Issue 12603: Support quote in the api / Issue 12654: prevent privacy leakage 2023-01-23 21:24:50 +00:00
Michael ff28044cf6 Issue 12603: Support quotes in the API 2023-01-23 19:00:20 +00:00
Hypolite Petovan 73c8720d41 Declare history property in Mastodon\Card
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1383173055
2023-01-21 14:25:21 -05:00
Michael 73e163100c Nodeinfo data has moved to key values 2023-01-18 05:04:37 +00:00
Hypolite Petovan f4b5d22396
Merge pull request #12644 from annando/improve-ignore
Improve the ignore behaviour
2023-01-10 09:05:48 -05:00
Hypolite Petovan 14e4c0db8e Check image property is set in Object\Image
- Property was either an object or null, strict comparison with "false" was inaccurate
- Address https://github.com/friendica/friendica/issues/12486#issuecomment-1374888800
2023-01-09 16:06:22 -05:00
Michael 840f25cc5c Improve ignoring of messages 2023-01-09 16:23:39 +00:00
Hypolite Petovan 8ad94fef9b Change "thumbnail" for default Friendica banner image in Api\Mastodon\Instance 2023-01-07 22:39:07 -05:00
Hypolite Petovan 6685157f8a Cast alert types to boolean in Api\Mastodon\Subscription 2023-01-05 11:54:01 -05:00
Hypolite Petovan 1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Hypolite Petovan 59b5d080d5
Merge pull request #12558 from MarekBenjamin/fix-disorted-portraits
Fixed width and height not updated when image rotation is done by EXIF based orient method
2022-12-28 17:30:47 -05:00
MarekBenjamin 2d1d06c6d2
Update src/Object/Image.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-12-28 23:19:53 +01:00
MarekBenjamin ed05d6376d
Update src/Object/Image.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-12-28 23:19:48 +01:00
Hank Grabowski 4f0968a93c Make tag 'Names' Field have case-sensitive version 2022-12-28 17:01:06 -05:00
Marek Bachmann 19b8b389fd Fixed width and height not updated when image rotation is done by EXIF based orient method 2022-12-28 21:43:34 +01:00
Marek Bachmann eb87a2afbe Merge remote-tracking branch 'origin/doubled_code_for_scaling-dimensions' into doubled_code_for_scaling-dimensions
# Conflicts:
#	src/Object/Image.php
2022-12-28 16:43:47 +01:00
Marek Bachmann 7b34fdc715 removed one redundant check for height and width beeing set 2022-12-28 16:42:38 +01:00
MarekBenjamin 2c509ac2b2
Update src/Object/Image.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-12-28 16:32:33 +01:00
Marek Bachmann 88a7dd1afb Replaced the doubled code in for getScalingDimension with Images::getScalingDimensions($width, $height,$max) 2022-12-28 03:30:56 +01:00
Michael e6f0e3c23e Don't calculate the blurhash on images without a size 2022-12-20 22:32:24 +00:00
Michael bdc865afae Measures against several warnings and errors in the log 2022-12-20 06:22:11 +00:00
Hypolite Petovan 6a17223289 Ward against null value in language key of item array in Mastodon\Status object
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1357768936
2022-12-19 10:11:12 -05:00
Hypolite Petovan c7e53cb9b4 Use account-user-view entry to instantiate Api\Mastodon\FollowRequest objects
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1354395861
2022-12-18 01:03:37 -05:00
Michael 7d51fa47d5 Issue 12345: No link preview on DFRN posts 2022-12-08 05:49:25 +00:00