Commit graph

50 commits

Author SHA1 Message Date
Dan Phiffer
18299a2c2b use esm import instead of cjs require 2024-10-02 09:53:07 -04:00
Darius Kazemi
34b46ed9fc Require OAuth 2.0 verification to create feeds
As of the `v2.0.0` release of this project, only users who are authenticated with a particular OAuth server can _create_ feeds. Any federated user can still read the feeds. I implemented this because running this service in the open invited thousands of spammers to create feeds and overwhelm the service. With this new model, you can run this as an added bonus for people in a community like a Mastodon server, and as the person running it you are taking on only the moderation burden of the users you are already responsible for on your federated server.
2021-10-12 09:12:03 -07:00
Darius Kazemi
2cf520fd4b
Merge pull request #58 from snan/nodemo
Removed link to demo, since the demo is down.
2021-01-08 13:56:40 -08:00
Darius Kazemi
f7a85d0c19
Merge pull request #59 from umonaca/bugfix-digest
Fix compatibility with Mastodon 3.2.1, Pleroma and Misskey
2020-10-26 12:06:32 -07:00
umonaca
2ce39c7e65 Fix content type mismatch for Pleroma 2020-10-26 06:45:13 -04:00
umonaca
d7a3f8b765 Add algorithm field for Misskey compatibility 2020-10-26 01:50:04 -04:00
umonaca
520f9b87e6 Add digest to http signature for Mastodon 3.2.1 compliance
Remove logs
2020-10-26 00:38:37 -04:00
Sandra Snan
6dec3d5d29 Removed link to demo, since the demo is down. 2020-07-25 16:26:05 +02:00
Darius Kazemi
c3983fe4bc Support audio attachments
Mastodon 2.9.2 now supports native audio attachments, so
any mp3 enclosures detected from a podcast-style feed
are converted to an audio attachment of the form
"attachment": {
  "type": "Document",
  "mediaType": "audio/mpeg",
  "url": "[URL of the mp3]",
  "name": null
}
2019-06-28 15:33:07 -07:00
Darius Kazemi
4754a0dc92
Merge pull request #32 from HorlogeSkynet/feature/allow_bot_detection
Allow "Bot tagging" by other Fediverse services
2019-05-25 18:11:51 -07:00
Darius Kazemi
2a32095585 Remove title for twitter.com bridge users
Closes #24
2019-05-25 10:24:50 -07:00
Darius Kazemi
64bd0057fd Merge branch 'master' of https://github.com/dariusk/rss-to-activitypub 2019-05-25 10:15:22 -07:00
Darius Kazemi
9332e287ab Removing the file extension check on images
Since we're not checking mime types anyway, and most browser
supported image formats should probably render as attachments
on Mastodon and Pleroma, I'm removing this. There are often
normal JPEG and PNG images that get linked as an img src but
lack the standard file extensions, especially if it comes from
an API that returns the file binary.

Closes #36.
2019-05-25 10:12:39 -07:00
Darius Kazemi
24d4c7fbf9
Merge pull request #31 from HorlogeSkynet/fix/redirection_existing_feeds
Fixes redirection to existing feeds
2019-05-22 14:07:23 -07:00
Samuel FORESTIER
55478651f6 Changes the actor type from Person to Service to allow bot detection 2019-05-18 14:00:04 +02:00
Samuel FORESTIER
01ac1a9e78 Fixes redirection to existing feeds by URL-decoding resources locations 2019-05-18 13:25:58 +02:00
Darius Kazemi
54f61e6dc2 Improve item formatting
Closes #28.
2019-05-12 13:32:49 -07:00
Darius Kazemi
2b4479fbe8 Merge branch 'beanstalk' 2019-05-07 10:22:09 -07:00
Darius Kazemi
737c418ed7 Fixes to formatting and payload processing order 2019-05-07 10:20:21 -07:00
Darius Kazemi
01a8a5f336 iframes 2019-04-29 13:37:07 -07:00
Darius Kazemi
5012b8bb17 Updating to use beanstalkd queueing system 2019-04-29 13:36:04 -07:00
Darius Kazemi
7cfe50605c Adding a timeout to the RSS parser
This fixes #22.
2019-04-13 13:34:49 -07:00
Darius Kazemi
c22dbae3b5 Commit missing files
Fixes #21
2019-04-12 05:30:34 -07:00
Darius Kazemi
9d08138408 fixing bug 2019-03-29 09:23:05 -07:00
Darius Kazemi
45e1362aa2 Provide route to dereferenced messages and fix duplicate messages
This commit mostly fixes the duplicate messages issue. What was happening was I was creating multiple Note objects if I was sending a Note to multiple people. Instead I create one Note object and reference that in multiple Create events.
2019-03-29 06:47:51 -07:00
Darius Kazemi
753872d31d Deliver messages to Pleroma inboxes correctly 2019-03-26 10:54:51 -07:00
Darius Kazemi
e0dbc536dc Encode URI components for feed with query params
This fixes #10 and fixes #15.
2019-03-10 21:37:08 -07:00
Darius Kazemi
6039a793c4 Fixing bugs 2019-03-10 21:25:21 -07:00
Darius Kazemi
eec3b31641 Add Followers reference to Actor object
This is for Pleroma compatibility per

https://github.com/dariusk/rss-to-activitypub/issues/11#issuecomment-471390881

And fixes #11.
2019-03-10 21:02:12 -07:00
Darius Kazemi
48d1a7ba87 Send Accept to the private inbox of the user 2019-03-10 20:32:43 -07:00
Darius Kazemi
609c640fc4 Add feed URL to user page
Closes #18.
2019-03-08 22:29:28 -08:00
Darius Kazemi
4888db441c add reminder about how feeds work 2019-02-23 22:26:24 -08:00
Darius Kazemi
92a37d60e1 Include more context on rendered pages
We now provide a link back to the tool from user pages as well as a link to the source code. Fixes #14.
2019-02-23 20:37:24 -08:00
Darius Kazemi
aa2fbcd409 Better error message for malformed feed
Fixes #12.
2019-02-22 12:33:56 -08:00
Darius Kazemi
18d64cd7be More stable updates; unlisted posts
* change the way updateFeeds works so that it loops correctly through all feeds and doesn't hang
* make posts unlisted by default in Mastodon ('cc' the public collection rather than 'to')
2019-02-21 07:58:14 -08:00
Darius Kazemi
6e7c8b9705 updates to the feed transform 2018-12-17 18:11:53 -08:00
Darius Kazemi
1d745ae99c Fixing follow bug
Fixing an issue where I wasn't parsing the followers string on a DB query pre-write so followers would just not be written to the DB.
2018-12-17 13:48:14 -08:00
Darius Kazemi
dd6259ced0 Documentation changes
* Add link to source

* link to express activitypub server

* more database information
2018-11-19 06:01:34 -08:00
Darius Kazemi
cf8b1721d9 Add profile description field from RSS description
This adds a `summary` field to the `actor` object, populated from
the RSS feed's top level <description> element. This makes the
<description> content into the profile description.
2018-11-17 15:54:57 -08:00
Darius Kazemi
9957ea6f7f Merge branch 'master' of https://github.com/dariusk/activitypub-to-rss 2018-11-17 15:06:56 -08:00
Darius Kazemi
5ad4516a70 Protect against TypeError
Only attempt to call req.headers.accept.include() if req.headers.accept exists.
2018-11-17 15:05:55 -08:00
Peter Hormanns
b26955dc3c change hard coded domain 2018-11-13 10:40:04 -08:00
Peter Hormanns
b8992bd817 fix convert-link 2018-11-13 10:39:59 -08:00
Darius Kazemi
04801687d9 fixing issue with error in SQL query 2018-10-15 12:31:18 -07:00
Darius Kazemi
8678d24707 remove extraneous logs 2018-10-15 11:56:59 -07:00
Darius Kazemi
90ad278588 Fix bug in JSON parsing when fetching from DB 2018-10-15 11:46:18 -07:00
Darius Kazemi
4966d0a922 Fall back to favicon/touch icon if no image in feed
Fixes #1.
2018-10-15 11:45:32 -07:00
Darius Kazemi
f0f67e07cd Removing comments and fixing some bugs in the update script 2018-10-15 10:47:27 -07:00
Darius Kazemi
dea3bcfc60 Update readme 2018-10-14 21:32:17 -07:00
Darius Kazemi
36bb506bcb First 2018-10-14 21:29:27 -07:00