Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
XExtension Readable
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Archive
FreshRSS
XExtension Readable
Commits
2525e731
Unverified
Commit
2525e731
authored
2 years ago
by
Eris
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #2 from papaschloss/master
bug fixes
parents
56b43c12
994ad5b8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
extension.php
+5
-2
5 additions, 2 deletions
extension.php
with
5 additions
and
2 deletions
extension.php
+
5
−
2
View file @
2525e731
...
...
@@ -19,12 +19,12 @@ class ReadableExtension extends Minz_Extension {
$this
->
loadConfigValues
();
$host
=
''
;
if
(
array_key_exists
(
$entry
->
feed
(
false
),
$this
->
mStore
)
)
{
if
(
array_key_exists
(
$entry
->
feed
Id
(
),
$this
->
mStore
)
)
{
$host
=
$this
->
mercHost
.
"/parser?url="
.
$entry
->
link
();
$c
=
curl_init
(
$host
);
}
if
(
array_key_exists
(
$entry
->
feed
(
false
),
$this
->
rStore
)
)
{
if
(
array_key_exists
(
$entry
->
feed
Id
(
),
$this
->
rStore
)
)
{
$host
=
$this
->
readHost
;
$c
=
curl_init
(
$host
);
$data
=
"{\"
url
\
":
\"
"
.
$entry
->
link
()
.
"
\"
}"
;
...
...
@@ -46,6 +46,9 @@ class ReadableExtension extends Minz_Extension {
return
$entry
;
}
$val
=
json_decode
(
$result
,
true
);
if
(
empty
(
$val
)
||
empty
(
$val
[
"content"
]))
{
return
$entry
;
}
$entry
->
_content
(
$val
[
"content"
]);
return
$entry
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment