Andrew Dolgov
68e2b05f65
* move get_article_image to Article; implement better og:image detection (similar to android app)
...
* pass article image to API clients in headlines row object
5 years ago
Andrew Dolgov
3c075bfd21
DiskCache: more strict checking for input filenames, getUrl() is no longer static
5 years ago
Andrew Dolgov
fdb6066bf6
* HOOK_ENCLOSURE_ENTRY: pass article_id to handler
...
* DiskCache: multiple fixes; support isWritable() for cache entries, set content-disposition for send()
* public/cached_url: allow selecting files from sub-caches other than images
* plugins/Cache_Starred_Images: rework to use DiskCache, can be enabled per-user, properly handles article enclosures, etc
5 years ago
Andrew Dolgov
b1dd38f880
add DiskCache.getUrl() and use it in a bunch of places
5 years ago
Andrew Dolgov
4fa9aee4e7
move several more global functions to more appropriate classes
6 years ago
Andrew Dolgov
fda475bd93
af_readability: fix HOOK_GET_FULL_TEXT not being installed because plugin init() is called before load_data()
6 years ago
Andrew Dolgov
6955b2e02d
plugins: add HOOK_GET_FULL_TEXT which may be used to provide full text extraction to core code and other plugins, instead of trying to invoke af_readability specifically
6 years ago
fox
525298569e
Merge branch 'hotkeys-focus' of suraia/tt-rss into master
6 years ago
Michael Kuhn
e38fcd6dea
Fix button focus issues
...
This change introduces derived classes for ComboButton, DropDownButton
and Select that make sure that buttons do not remain focused after their
menus are closed. This allows using hotkeys after closing them.
6 years ago
zeed
e397caa82a
update the tsvector_combined when create_published_article
...
https://discourse.tt-rss.org/t/create-published-article-doesnt-update-the-tsvector-combined/2277
6 years ago
Andrew Dolgov
3bd3324e5a
update: add option to send digests
6 years ago
Andrew Dolgov
335147e572
dialogs: use semantic markup instead of dlgsec stuff
...
continue unifying quoting style for html strings
6 years ago
Andrew Dolgov
1124c3f00a
label display: fix unneeded nested container in headlines, increase overall minimalism, fix label element typo (div1)
6 years ago
Andrew Dolgov
25ca144bb7
score: get correct classes for rows/score icons on the client
6 years ago
Andrew Dolgov
93dfdb2fcd
exp: tweak headline label styles
6 years ago
Andrew Dolgov
b2c079893b
move Article::format_article() to Handler_Public
6 years ago
Andrew Dolgov
bd66a9ef28
render article on the client using headlines data
6 years ago
Andrew Dolgov
4e06b94f76
format_article_enclosures: i don't think we need so many <hr>s
6 years ago
Andrew Dolgov
4cbc62d2a5
article note format updates
6 years ago
Andrew Dolgov
369bac525b
simplify zoom mode display
6 years ago
Andrew Dolgov
26c074ed7e
rework article header to use flexbox
6 years ago
Andrew Dolgov
d2d2cb7e7d
rework scoring display, JS processing and icons
6 years ago
Andrew Dolgov
a0778577ac
remove pub_{set,unset}.png usage in main code
6 years ago
Andrew Dolgov
78cc470193
remove some plugin JS code out of global context
6 years ago
Andrew Dolgov
0a18d0b1ed
Feeds: shorten some method names
...
finally rename "view as rss"
6 years ago
Andrew Dolgov
3678315bea
Article, Headlines: shorten several method names
6 years ago
Andrew Dolgov
642c37ea61
further effocts to wrap JS stuff into objects
6 years ago
Andrew Dolgov
049a37aa0e
WIP reshuffling of JS global context into separate logical objects
6 years ago
Andrew Dolgov
195180b64d
minor refactoring: normalize some function names; cleanup; etc
6 years ago
Andrew Dolgov
07fd4f8d9d
minor css fixes (mostly for zoom mode)
6 years ago
Andrew Dolgov
add558e7e5
rework some styles related to three panel mode
6 years ago
Andrew Dolgov
c10a43069e
debug logging system rework:
...
* support various logging levels per-message
* remove hacks like debug_suppress, DAEMON_EXTENDED_DEBUG, etc
* _debug() is kept as a compatibility shim for plugins
6 years ago
Andrew Dolgov
ed1262d55a
oops, remove useless db_escape_string() in article class (and nsfw plugin)
6 years ago
Andrew Dolgov
3a0292303e
php: remove trailing whitespaces
6 years ago
Andrew Dolgov
2aef804f4b
split transparent rewriting of locally cached media URLs to execute after both sanitize() and HOOK_RENDER_ARTICLE to allow plugins work on original source URLs consistently
6 years ago
Andrew Dolgov
f5302247c6
share: add support for og:image, etc. metadata for shared articles
7 years ago
Andrew Dolgov
8e1450aa15
update previous to only affect mysql
7 years ago
Andrew Dolgov
f76f773a16
purge_orphans: limit maximum number of deleted articles
7 years ago
Andrew Dolgov
e6532439d6
force strip_tags() on all user input unless explicitly allowed
7 years ago
Andrew Dolgov
31e2811a63
ttrss_zoom: fix CSS
7 years ago
Andrew Dolgov
5e68e24679
css/less updates
7 years ago
Andrew Dolgov
187abfe732
main classes: remove sql_bool_to_bool() kludge
7 years ago
Andrew Dolgov
e4befe6bf4
fix label cache being double escaped on save
...
remove some old-style escaping
7 years ago
Andrew Dolgov
2c57df75ff
article: remove db_escape..()
7 years ago
Andrew Dolgov
d0e73ed8ae
article: switch to PDO
7 years ago
Andrew Dolgov
2e46b434da
pdo: set warnings
7 years ago
Andrew Dolgov
c39ee27235
article: start pdo
7 years ago
Andrew Dolgov
9dd336a2c3
generate base css files using lessc
7 years ago
Andrew Dolgov
e50a647916
add HOOK_FORMAT_ARTICLE & HOOK_FORMAT_ARTICLE_CDM
...
Feeds::format_headlines_list: add some comments for cdm article closing tags
8 years ago
Andrew Dolgov
8f0a59f34a
share function: remove tt-rss prefix from page title
8 years ago
Andrew Dolgov
7c9b5a3fe4
move label stuff to Labels class
...
fix some unresolved functions
8 years ago
Andrew Dolgov
4a0da0e5bf
move get_article_labels to Article
8 years ago
Andrew Dolgov
2ed0d6c433
move counter cache to a separate class
...
fix references to get_article_tags
8 years ago
Andrew Dolgov
aeb1abedb2
move a bunch of functions into Feeds/Article namespaces
...
+ static function catchupArticlesById($ids, $cmode, $owner_uid = false) {
+ static function getLastArticleId() {
+ static function queryFeedHeadlines($params) {
+ static function getParentCategories($cat, $owner_uid) {
+ static function getChildCategories($cat, $owner_uid) {
move the rest of functions2.php back to functions.php as it is of more manageable size, remove the former
8 years ago
Andrew Dolgov
a230bf88a9
move to Article:
...
+ static function purge_orphans($do_output = false) {
move to Feeds
+ static function getGlobalUnread($user_id = false) {
+ static function getCategoryTitle($cat_id) {
+ static function getLabelUnread($label_id, $owner_uid = false) {
8 years ago
Andrew Dolgov
7e5f8d9fb3
move the following to Article:
...
+ static function format_article_enclosures($id, $always_display_enclosures,
+ static function format_article($id, $mark_as_read = true, $zoom_mode = false, $owner_uid = false) {
+ static function get_article_tags($id, $owner_uid = 0, $tag_cache = false) {
+ static function format_tags_string($tags) {
+ static function format_article_labels($labels) {
+ static function format_article_note($id, $note, $allow_edit = true) {
+ static function get_article_enclosures($id) {
8 years ago
Andrew Dolgov
4122da0290
move getArticleFeed to Article
...
move print_label_select to controls
8 years ago
Andrew Dolgov
7b55001eee
fix various issues reported by static analysis
...
update gitlab-ci config
8 years ago
Andrew Dolgov
328118d12e
use print_hidden() for hidden dojo form fields
8 years ago
Andrew Dolgov
8b8568e9a3
edit tags dialog: fix height
8 years ago
Andrew Dolgov
7af2e79578
create_published_article: only use readability if enabled in the plugin
9 years ago
Andrew Dolgov
666cd33360
enable support for readability (if af_readability is enabled) in shareanything bookmarklet
9 years ago
Andrew Dolgov
f48f292d2b
tweak filter preview layout a bit; allow previewing matched articles in a popup
9 years ago
Andrew Dolgov
fb8a032a6b
minor textarea fixes
9 years ago
Andrew Dolgov
a72cd54ce1
bayes: properly reset score when going good -> ugly
...
article: add helper to refresh article score pic, properly set scorepic title
10 years ago
Andrew Dolgov
7416305704
fix sharebyurl identifying articles by link instead of special synthesized guid which caused feed entries overwriting shared entries if their link matched
11 years ago
Andrew Dolgov
4a80c57c50
remove some unused code reported by phpmd
11 years ago
Andrew Dolgov
5bbc4bb4b0
move stylesheets to css/, reference default tt-rss stylesheets from
...
default.css to make custom themes easier
12 years ago
Rasmus Lerdorf
6f7798b643
Fixing bugs found by static analysis
12 years ago
Andrew Dolgov
d9c85e0f11
classes: use OO DB interface
12 years ago
Andrew Dolgov
a42c55f02b
fix blank character after opening bracket in function calls
12 years ago
Andrew Dolgov
6322ac79a0
remove $link
12 years ago
Andrew Dolgov
5e3d5480f7
use hashed guids in a hopefully backwards compatible fashion
12 years ago
Andrew Dolgov
4b7726f0b4
rpc: move labelops to article
12 years ago
Andrew Dolgov
c83554bddd
rpc: move completeTags to article
12 years ago
Andrew Dolgov
5df8be5c0a
rpc: move setArticleTags to article
12 years ago
Andrew Dolgov
d719b06240
rpc: move setScore to article
12 years ago
Andrew Dolgov
1c9bda915b
move several methods from dlg; fix displayed tags not updated after editing
12 years ago
Andrew Dolgov
d2888e8832
create_published_article: set last_published properly on creation
12 years ago
Andrew Dolgov
3972bf5981
db_escape_string: specify link parameter for consistency; sessions: do not force-close db connection in _close()
12 years ago
Andrew Dolgov
6afcbcd1a5
fix wrong DOS line-endings
12 years ago
Andrew Dolgov
5083271956
move some more functions out of functions.php; fix opml.php failing due to redeclared autoload
12 years ago
Andrew Dolgov
87d7e8507a
split some more functions from functions.php
12 years ago
Andrew Dolgov
369dbc19d6
rework class system to use subdirectories
...
add placeholder plugin/hook system
12 years ago
Andrew Dolgov
8484ce2258
experimental CSRF protection
13 years ago
Andrew Dolgov
46da73c255
implement ProtectedHandler
13 years ago
Andrew Dolgov
611efae712
add catchall backend class
13 years ago
Andrew Dolgov
3f3630529e
implement tiny-OOP routing
13 years ago