Skip to content

Hoarder Integration #6958

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: edge
Choose a base branch
from

Conversation

xsurgefl7x
Copy link

@xsurgefl7x xsurgefl7x commented Oct 31, 2024

Changes proposed in this pull request:

  • Refactored sharing script to an extension.
  • Added Integration with Hoarder API to save the articles.

How to test the feature manually:

  1. Install hoarder latest nightly.
  2. Move xExtension-Hoarder into extensions
  3. Set your API key and IP address for your hoarder instance.
  4. Submit the configuration.
  5. Refresh FreshRSS, and check if articles are saved as a bookmark in Hoarder.

Pull request checklist:

  • clear commit messages
  • code manually tested

Acknowledgments

@Alkarex
Copy link
Member

Alkarex commented Nov 1, 2024

Could the hoarder.php be moved to a FreshRSS extension? We can add additional hooks if needed

$url = $_GET['url'];

// Prepare the command
$command = "bash -c 'hoarder --api-key \"$api_key\" --server-addr \"$server_addr\" bookmarks add --link \"$url\"'";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This remark is probably not overly relevant for an extension, but note https://www.php.net/manual/en/function.shell-exec.php and https://www.php.net/manual/en/function.escapeshellarg.php

@xsurgefl7x xsurgefl7x requested a review from Frenzie November 4, 2024 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy