Commit graph

526 commits

Author SHA1 Message Date
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
Philipp
218fc0c20d
Fix unsupported animated webp parsing 2022-05-21 18:51:03 +02:00
Philipp
783b05cbb1
Fix unsupported animated webp parsing 2022-05-21 18:44:03 +02:00
Michael
fae414fedd Fix local avatar, improve speed for fetching cached photos 2022-05-10 18:18:24 +00:00
Michael
e3692c0105 Replaced check with hardwired path 2022-05-09 04:26:00 +00:00
Michael
f220e26f00 Use new function to check for a local avatar cache file 2022-05-08 10:32:29 +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
1326239576 Reduce the amount of queries 2022-04-29 05:32:12 +00:00
Michael
9b646dad97 API: We can now display polls 2022-04-22 19:24:22 +00:00
Michael
94a8f430e3 Avoid warning " Undefined variable $browsershare" 2022-04-20 12:03:09 +00:00
Michael
62b31900a6 Renamed "share" with "share via" 2022-04-19 21:04:55 +00:00
Michael
75bc4eccb7 Display featured posts for contacts 2022-04-07 21:52:25 +00:00
Michael
13addaf901 Always provide the title variable 2022-03-22 07:07:33 +00:00
Michael
be016b0c45 Prioritize the title over the content warning 2022-03-22 07:00:44 +00:00
Michael
e0468ac914 API: Improve support for the summary field 2022-03-08 18:32:09 +00:00
Michael
903bc9b679 Improved support for Mastodon style content warnings 2022-03-06 11:49:55 +00:00
Michael
772294494e API: Fix display of reshares / return value of activities 2022-02-28 20:10:42 +00:00
Michael
bf5c8a2c43 API: several fixes to the Twitter/Statusnet API 2022-02-25 19:16:40 +00:00
Michael Vogel
948405a486
Merge pull request #11267 from MrPetovan/task/11264-mastodon-api-version
Update Mastodon API version string to include Mastodon version compatibility
2022-02-23 05:38:25 +01:00
Hypolite Petovan
d7b573c6d7 Update Mastodon API version string to include Mastodon version compatibility 2022-02-20 20:22:39 -05:00
Hypolite Petovan
e0ea51818e Add constructors to a couple of Mastodon API value objects 2022-02-20 16:17:03 -05:00
Michael
39e820e6a3 Display the post receivers 2022-02-20 19:25:55 +00:00
Michael
c867581530 Store the receivers of a post in the tags 2022-02-19 13:31:49 +00:00
Michael Vogel
6bc69f3353 Workaround for timing problems / Avoid a notice in the scheduled posts 2022-02-12 18:27:58 +01:00
Michael
95f085b7ac API: The legacy API finally moved 2022-01-15 21:38:19 +00:00
Hypolite Petovan
f2af985350 [frio] Add a conditional browser share button 2022-01-09 12:31:54 -05:00