Commit graph

231 commits

Author SHA1 Message Date
Art4
40f467fb72 Extract Feed::importOlderEntries() into own method 2025-01-23 14:13:32 +00:00
Art4
f75b67de2f Extract method Fee::getTitleFromItemOrEntry() 2025-01-23 13:56:35 +00:00
Art4
0e59dba914 Fix code style 2025-01-13 13:31:54 +00:00
Art4
bf8df261ad Replace Logger with DI::logger() in Feed Protocol class 2025-01-13 12:39:20 +00:00
Art4
d4e4c1505b Fix errors in Protocol namespace 2024-12-07 14:45:47 +00:00
Art4
c79f3cde22 Merge branch 'develop' into phpstan-level-1 2024-11-18 21:45:42 +00:00
Art4
603af2fb19 Rename DI::apphelper() to DI::appHeler() 2024-11-17 20:00:34 +00:00
Art4
9638113244 Fix all errors in Protocol namespace 2024-11-17 18:39:17 +00:00
Art4
9074258b78 Replace static calls of DI::app() with DI::apphelper() 2024-11-06 07:57:43 +00:00
Michael
e8a3be6820 OStatus support removed 2024-09-11 03:44:40 +00:00
Tobias Diekershoff
30a5ef33b0 REUSE src directory 2024-08-24 15:27:00 +02:00
Michael
fd3386fe20 Improved hostname handling with feeds 2024-05-28 05:20:53 +00:00
Michael
4066a5403c Improved summary handling for feeds 2024-05-23 19:45:42 +00:00
Tobias Diekershoff
9ae4a17977
Merge pull request #14152 from annando/feed-no-html
Log the feed fix only if it has an effect.
2024-05-13 06:29:02 +02:00
Michael
21fc28029a Probing for Zot improved and Pumpio removed 2024-05-13 00:58:54 +00:00
Michael
52b11856fa Log the feed fix only if it has an effect. 2024-05-13 00:36:30 +00:00
Hypolite Petovan
d788cb82cc
Merge pull request #14148 from annando/summary
Use the field for the summary instead of the "abstract" element
2024-05-11 18:14:32 -04:00
Michael
e43f96740b Use the field for the summary instead of the "abstract" element 2024-05-11 20:14:01 +00:00
Michael
bca86beda0 Support for non HTML content for feed imports 2024-05-11 20:03:19 +00:00
Michael
c82a1ed467 Performance improvements when displaying local posts 2024-04-17 19:16:47 +00:00
Michael
bae7644d6f Issue 13955: Check for publish date upon receival 2024-03-02 19:21:14 +00:00
Michael Vogel
14e5b06029
Image handling reworked, new image formats added (#13900)
* Image handling reworked, new image formats added

* Updated messages.po

* The dot is now part of the file extension

* Added WebP in install documentation

* Handle unhandled mime types

* Fixed animated picture detected
2024-02-17 07:45:41 +01:00
Michael
89e7420237 Friendica copyright changed from 2023 to 2034 2024-01-02 20:57:26 +00:00
Hypolite Petovan
d0a2357fbd Add constants for the Fetch Further Information field 2023-08-02 21:53:09 +02:00
Hypolite Petovan
add913da27 Remove misleading concatenation in XPath expression in Protocol\Feed
- Variable could be directly interpolated
- Address https://github.com/friendica/friendica/issues/13025#issuecomment-1543335001
- Address https://github.com/friendica/friendica/issues/13025#issuecomment-1545074703
2023-05-12 06:06:34 -04:00
Michael Vogel
46d3778ee8
Merge pull request #13099 from MrPetovan/bug/warnings
Address several warnings
2023-05-07 08:25:44 +02:00
Michael
91a7217fb8 Fix: Feeds had been imported with the wrong body 2023-05-07 06:13:28 +00:00
Hypolite Petovan
32688d34b6 Ensure $atomns is always set in Protocol\Feed
- Address https://github.com/friendica/friendica/issues/13025#issuecomment-1537162173
2023-05-07 00:00:55 -04:00
Michael
d4f0c1a8dc Improved ATOM distinction, added OPML 2023-05-06 13:52:39 +00:00
Michael
74bcc33fdb Support for feeds that follow the ATOM 0.3 specification 2023-05-06 11:35:34 +00:00
Josh Soref
935e57c280 spelling: than
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:14:16 -04:00
Michael
aea3ed4548 Code is reformatted 2023-03-05 21:46:45 +00:00
Michael
eafe54f2dd The function "getAttachedData" has been removed 2023-03-05 21:22:22 +00:00
Michael
d41ec728e4 We only need a link here 2023-03-04 21:36:19 +00:00
Michael
b761760d65 Fix missing attached links in posts 2023-03-04 19:04:37 +00:00
Philipp
f0c29edcde
Adapt BaseURL calls to new UriInterface 2023-02-18 21:12:21 +01:00
Michael
f078b6bc18 Issue 12753: For remote-self feed items the plink mustn't point to the original feed link 2023-01-30 06:58:36 +00:00
Michael
ba4860b787 Avoid local network communication / invalid url requests 2023-01-27 05:55:45 +00:00
Daniel Siepmann
da58b894a4
Properly handle feed item creation date with surrounding whitespace
Some feeds might have whitespace around the creation date.
This can't be parsed by DateTimeFormat methods.
Therefore the incoming creation date is trimmed to not contain any
surrounding whitespace for proper handling.

Relates: #12686
2023-01-17 07:18:47 +01:00
Michael
cd3dbad2a8 Fix some warnings on item creation 2023-01-09 15:55:35 +00:00
Hypolite Petovan
1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Hypolite Petovan
fc246424a9 Provide default host value to hash() in Model\Item::guidFromUri
- Address part of https://github.com/friendica/friendica/issues/12011#issuecomment-1338133783
2022-12-10 11:38:37 -05:00
Hypolite Petovan
303d556ab0 Fix last reference of replaced variable $owner_nick in Protocol\Feed::atom()
- Address https://github.com/friendica/friendica/issues/11994#issuecomment-1336146405
2022-12-03 10:19:04 -05:00
Hypolite Petovan
b83526ad0b Tighten profile restriction feature
- Prevent feed access to restricted profiles
- Rework display of restricted profiles with a redirect to the profile/restricted route
- Normalize permission checking with IHandleUserSession->isAuthenticated
- Remove unusable "nocache" parameter in feed module because session isn't initialized
- Reword setting name and description
2022-12-01 08:03:35 -05:00
Michael
f54a886a5e The "share" handling is improved 2022-10-25 06:37:23 +00:00
Roland Häder
26e0469de7
Merge branch 'develop' into rewrite/gravity-constants 2022-10-18 16:34:40 +02:00
Michael
62a0d55fc8 The friendica constants have been moved to the app class 2022-10-17 10:37:48 +00:00
Michael
018858934b The priority is now a class constant 2022-10-17 05:49:55 +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
b6da15557b The post-reason / protocol is now filled in most cases 2022-07-31 15:54:35 +00:00