wn_
3487c922b3
Replace use of 'array_merge' with the spread operator and 'array_push' in various places.
...
This isn't supported for arrays with string keys until PHP 8.1.
https://wiki.php.net/rfc/spread_operator_for_array
2022-08-12 17:58:38 +00:00
wn_
78acf18b70
Address PHPStan warnings in FeedItem classes.
2021-11-15 02:40:45 +00:00
wn_
5b17c44e70
Address PHPStan warning in 'classes/feeditem/common.php'.
...
------ ---------------------------------------------
Line classes/feeditem/common.php
------ ---------------------------------------------
194 No error to ignore is reported on line 194.
------ ---------------------------------------------
2021-11-01 21:10:27 +00:00
Andrew Dolgov
9f734c9050
minor phpstan tweaks
2021-10-22 13:49:08 +03:00
Andrew Dolgov
e8e6329040
rename unfairly prefixed get_enclosures() in feeditem
2021-03-05 09:35:24 +03:00
Andrew Dolgov
e4107ac952
wip: initial for config object
2021-02-22 21:47:48 +03:00
Andrew Dolgov
257efb43c6
article: unify naming
2021-02-15 15:52:28 +03:00
Andrew Dolgov
85b788709a
setArticleTags: prevent duplicate tags being assigned if called twice
...
editTagsDlg: prevent dialot from being submitted twice
normalize_categories: filter out empty values that failed validation
2020-12-07 23:35:37 +03:00
Andrew Dolgov
304d3a0b88
tag-related fixes
...
1. move tag sanitization to feedparser common item class
2. enforce length limit on tags when parsing
3. support multiple tags passed via one dc:subject and other such elements, parse them as a comma-separated list
4. sort resulting tag list to prevent different order between feed updates
5. remove some duplicate code related to tag validation
6. allow + symbol in tags
2019-11-20 18:56:34 +03:00
Andrew Dolgov
aa40a268f0
parser: support multiple dc:creator elements (returns as comma-separated list)
2019-08-02 06:22:42 +03:00
Andrew Dolgov
55ef85adc0
parser: clean() attribute values by default (except content)
2018-12-26 10:16:11 +03:00
Andrew Dolgov
54727f9534
parser: move media:element handling to feeditem_common; use media:content @media attribute to generate placeholder content-type if not specified
2018-08-21 07:01:26 +03:00
Andrew Dolgov
40f4a7aa6b
feeditem_common: add get_element()
2017-05-05 09:21:10 +03:00
Andrew Dolgov
ea79a0e033
remove some redundant php closing tags
2017-04-26 20:24:18 +03:00
Andrew Dolgov
7d1e15c396
parser: properly support tag subtrees instead of text content for article content
2016-01-23 01:48:32 +03:00
wltb
d71ac5d3da
implemented get_comments_url() and Atom Threading Extension
2013-12-18 17:06:43 +01:00
Andrew Dolgov
0156128702
catch warning when removing source element
2013-07-10 12:50:42 +04:00
Andrew Dolgov
b584460302
parser: remove atom <source> element
2013-06-25 14:43:59 +04:00
Andrew Dolgov
602fe53496
fix atom <author>value</author> elements
2013-05-02 10:36:05 +04:00
Andrew Dolgov
b4d1690097
move common methods to feeditem_common
2013-05-01 21:06:48 +04:00