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
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
Michael
a260e97b6f
The BlurHash function must not change the original image
2022-12-05 20:38:21 +00:00
Michael
e62be24e6b
Swap conditions
2022-12-05 12:53:21 +00:00
Michael
6deb93256a
Support blurhash for Imagick
2022-12-05 06:53:19 +00:00
Michael
2be0ad7697
Remove test code
2022-12-05 03:59:47 +00:00
Michael
5bff6f38d7
Issue 12327: Convert avatars to static
2022-12-04 23:31:23 +00:00
Michael
cfe5101b9b
Use the blurhash when the remote picture doesn't load
2022-12-04 14:58:53 +00:00
Michael
a5be5b27e3
Support Blurhash
2022-12-04 13:29:21 +00:00
Michael
b6f7d31036
API: Central way to fetch the system rules
2022-12-03 20:18:19 +00:00
Hank Grabowski
a27ffda59f
Add dismissed field to Mastodon API Notification types
2022-11-30 14:23:20 -05:00
Michael
3288efb323
Fix fatal errors because of unknown function/variable names
2022-11-28 21:22:21 +00:00
Michael
de76e860ad
API: Added trending links
2022-11-28 20:19:57 +00:00
Michael
85f57e69fa
Issue 12191: We can now follow and unfollow tags via API
2022-11-28 03:29:43 +00:00
Hypolite Petovan
29ee2473d7
Merge pull request #12269 from annando/api-edit
...
Issue 12192: API: Enable edit
2022-11-25 19:22:27 -05:00
Michael
92807d86a3
API: Enable edit
2022-11-25 19:35:40 +00:00
Hypolite Petovan
6b555f64da
Add \ReturnTypeWillChange attribute to methods inherited from native interfaces
...
- Part of https://github.com/friendica/friendica/issues/12011#issuecomment-1321796513
2022-11-25 08:13:05 -05:00
Hypolite Petovan
7c6d54c989
Ensure $attachment has a width and a height when it's an image in Mastodon\Attachment
...
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1323274513
2022-11-23 11:00:15 -05:00
Hypolite Petovan
a147038c2e
Ensure IEMail::getMessage returns a string
2022-11-19 19:15:47 -05:00
Thorsten
90567772bd
Prevent division by zero.
2022-11-19 18:16:41 +01:00
Thorsten
8a71bdc1a0
Add meta tag to attachment to show images in mastodon app.
2022-11-18 09:38:02 +01:00
Philipp
00883c9dcb
Move mod/editpost.php to src\Module\Post\Edit
2022-11-15 22:32:46 +01:00
Hypolite Petovan
fe547b7851
Centralize config.admin_email management in Model\User
2022-11-14 17:02:42 -05:00
Hypolite Petovan
4dc96daeb3
mail() requires additional headers to be separated by CRLF
...
- Rewrite Email->getAdditionalMailHeaderString to have only one string concatenation statement
2022-11-13 02:28:06 -05:00
Hypolite Petovan
4a626ef101
Create new Contact\Redir module class
...
- Move /redir route to /contact/redir
2022-11-08 20:12:23 -05:00
Philipp
f13c91b320
Move mod/cal.php and mod/events.php to Module
2022-11-07 19:52:24 +01:00
Michael
210200d330
Use different parser modes for Mastodon and Twitter-API
2022-11-06 20:02:43 +00:00
Michael
e10d714ef5
Don't show following/followed_by on pending
2022-11-06 08:18:28 +00:00
Michael Vogel
52f74b6312
Update src/Object/Api/Mastodon/Status.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2022-11-05 23:51:16 +01:00
Michael
aa2b4e15a3
Issue 11846: Fix client behaviour when following hash tags
2022-11-05 22:35:35 +00:00
Roland Häder
03e09627e4
Used $this->isThreaded()
instead as suggested by @MrPetovan
2022-10-26 17:59:07 +02:00
Roland Häder
3c50d5b70f
Changes:
...
- made code more readable
2022-10-26 01:31:34 +02: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
Philipp
b3f9cef94a
UserSession class [3] - Refactor src/ files excluding Module/Model
2022-10-21 19:35:32 +02:00
Michael
11944dda32
old boot.php functions replaced in various places
2022-10-19 07:44:08 -04:00
Philipp
7ac86e49d1
Move Core\Session::get() to DI::session()->get()
2022-10-18 21:10:37 +02:00
Roland Häder
26e0469de7
Merge branch 'develop' into rewrite/gravity-constants
2022-10-18 16:34:40 +02:00
Michael
6f68679375
The EOL constant is removed
2022-10-18 12:29:50 +00:00
Michael
62a0d55fc8
The friendica constants have been moved to the app class
2022-10-17 10:37:48 +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
Roland Häder
83cbe586ac
Changes
...
- renamed Item::visibleActivity() to Item::isVisibleActivity() as this returns
a boolean value
- added some type-hints
- added some documentation
2022-06-30 14:18:13 +02:00
Roland Häder
4bdce6948f
Changed:
...
- $publicContact['about'] can be NULL, causing following error:
--------------------------
Argument 1 passed to Friendica\Content\Text\BBCode::toPlaintext() must be of
the type string, null given, called in /.../src/Object/Api/Twitter/User.php
--------------------------
The "expensive" code there can be avoided being called by an empty string or
NULL to increase performance.
2022-06-26 23:28:48 +02:00
Roland Häder
fd8f4269ff
Reformatted code
2022-06-23 17:30:17 +02:00
Roland Häder
d8ff966d21
Throw IAE again (should never become visible)
2022-06-23 17:30:13 +02:00
Roland Häder
35c78ce14c
Ops, cannot return Thread?
2022-06-23 17:30:12 +02:00
Roland Häder
c2e26b4f49
Changed:
...
- Introduced InvalidArgumentException (should never come)
- added type-hints
2022-06-23 17:30:12 +02:00
Philipp
78bf7f187c
Merge pull request #11669 from MrPetovan/bug/11666-email-subject-double-encode
2022-06-22 16:51:23 +02:00
Roland Häder
84bfc37bf1
Changes:
...
- added more type-hints
- added missing documentation
2022-06-22 14:36:45 +02:00
Hypolite Petovan
d68f307337
Remove email subject encoding from ItemCCEmail constructor
...
- It was wrongly re-encoded in Emailer::send
2022-06-21 21:12:09 -04:00
Roland Häder
bff57bb030
Changes:
...
- added type-hints
- added returned type-hints in interface (I checked all)
2022-06-19 14:00:31 +02:00
Michael
4157f816f5
Fix for account variable name
2022-06-10 20:32:21 +00:00
Michael
9a1abda314
Use "avatar" instead of "contact"
2022-06-10 20:26:57 +00:00
Michael
7e747b2f41
API: Speed improvements when fetching posts
2022-06-10 18:49:03 +00:00
Michael
4108704ee3
Fix: Only public posts can be pinned
2022-06-04 06:11:32 +00:00