1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-29 12:20:51 +02:00

subcribe_to_feed: only try to use twitter OAuth when authentication information is available (closes #325)

This commit is contained in:
Andrew Dolgov 2011-02-26 15:11:20 +03:00
parent d564f2835c
commit aeaa69919f

View File

@ -2910,7 +2910,12 @@
$update_method = 0;
if (strpos($url, '://twitter.com') === false) {
$result = db_query($link, "SELECT twitter_oauth FROM ttrss_users
WHERE id = ".$_SESSION['uid']);
$has_oauth = db_fetch_result($result, 0, 'twitter_oauth');
if (!$has_oauth || strpos($url, '://twitter.com') === false) {
if (!fetch_file_contents($url)) return 5;
if (url_is_html($url)) {